Ákos Lukács commited on
Commit
fb83e3e
·
unverified ·
1 Parent(s): d494366

Fix "A Simple Program" example in README.md

Browse files

The example should use ainsert and aquery. Fixes #1723

Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -218,12 +218,12 @@ async def main():
218
  try:
219
  # Initialize RAG instance
220
  rag = await initialize_rag()
221
- rag.insert("Your text")
222
 
223
  # Perform hybrid search
224
  mode = "hybrid"
225
  print(
226
- await rag.query(
227
  "What are the top themes in this story?",
228
  param=QueryParam(mode=mode)
229
  )
 
218
  try:
219
  # Initialize RAG instance
220
  rag = await initialize_rag()
221
+ await rag.ainsert("Your text")
222
 
223
  # Perform hybrid search
224
  mode = "hybrid"
225
  print(
226
+ await rag.aquery(
227
  "What are the top themes in this story?",
228
  param=QueryParam(mode=mode)
229
  )