agents.rag.list_iteration_example¶
Example of using ListIterationNode with RAG agents.
Shows how to use the list iteration pattern for processing multiple queries or documents through RAG agents.
Functions¶
Create a list iteration node that summarizes multiple documents. |
|
Create a list iteration node for entity extraction. |
|
|
Create a list iteration node that processes multiple queries. |
Create a list iteration node that grades documents in parallel. |
|
Example of how to use list iteration nodes in a graph. |
Module Contents¶
- agents.rag.list_iteration_example.create_document_summarizer()¶
Create a list iteration node that summarizes multiple documents.
- Return type:
Any
- agents.rag.list_iteration_example.create_entity_extractor()¶
Create a list iteration node for entity extraction.
- Return type:
Any
- agents.rag.list_iteration_example.create_multi_query_processor(documents)¶
Create a list iteration node that processes multiple queries.
- Parameters:
documents (list[langchain_core.documents.Document])
- agents.rag.list_iteration_example.create_parallel_document_grader()¶
Create a list iteration node that grades documents in parallel.
- Return type:
Any
- agents.rag.list_iteration_example.example_graph_usage()¶
Example of how to use list iteration nodes in a graph.
- Return type:
Any