Fix "A Simple Program" example in README.md
The example should use ainsert and aquery. Fixes #1723
This commit is contained in:
parent
681d43bb32
commit
f115661e16
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue