Skip to main content

InMemoryQueryEngine

This engine stores ingested documents in memory and then injects them into an internal agent’s system message for answering queries.
This implements the autogen.agentchat.contrib.rag.RAGQueryEngine protocol.
Parameters:

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.
Parameters:

connect_db

Not required nor implemented for InMemoryQueryEngine Parameters:

init_db

Not required nor implemented for InMemoryQueryEngine Parameters:

query

Run a query against the ingested documents and return the answer. Parameters: