experimental
autogen.agents.experimental.InMemoryQueryEngine
InMemoryQueryEngine
This engine stores ingested documents in memory and then injects them into an internal agent’s system message for answering queries.
Parameters:Name | Description |
---|---|
llm_config | Type: dict[str, typing.Any] |
Instance Methods
add_docs
Add additional documents to the in-memory store
Loads new Docling-parsed Markdown files from a specified directory or a list of file paths
and inserts them into the in-memory store.
Name | Description |
---|---|
new_doc_dir | The directory path from which to load additional documents. If provided, all eligible files in this directory are loaded. Type: pathlib.Path | str | None Default: None |
new_doc_paths | A list of file paths specifying additional documents to load. Each file should be a Docling-parsed Markdown file. Type: list[pathlib.Path | str] | None Default: None |
query
Run a query against the ingested documents and return the answer.
Parameters:Name | Description |
---|---|
question | Type: str |