rag
autogen.agentchat.contrib.rag.RAGQueryEngine
RAGQueryEngine
A protocol class that represents a document ingestation and query engine on top of an underlying database.
This interface defines the basic methods for RAG.
Name | Description |
---|---|
*args | |
**kwargs |
Instance Methods
add_docs
Add new documents to the underlying data store.
Parameters:Name | Description |
---|---|
new_doc_dir | Type: pathlib.Path | str | None Default: None |
new_doc_paths | Type: list[pathlib.Path | str] | None Default: None |
*args | Type: Any |
**kwargs | Type: Any |
query
Transform a string format question into database query and return the result.
Name | Description |
---|---|
question | a string format question Type: str |
*args | Any additional arguments Type: Any |
**kwargs | Any additional keyword arguments Type: Any |