Merge pull request #1844 from AkosLukacs/patch-1

Fix "A Simple Program" example in README.md
This commit is contained in:
Daniel.y 2025-07-23 18:08:45 +08:00 committed by GitHub
commit 0009a37efb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,12 +218,12 @@ async def main():
try:
# Initialize RAG instance
rag = await initialize_rag()
rag.insert("Your text")
await rag.ainsert("Your text")
# Perform hybrid search
mode = "hybrid"
print(
await rag.query(
await rag.aquery(
"What are the top themes in this story?",
param=QueryParam(mode=mode)
)