mirror of
https://github.com/LukeHagar/LocalAI.git
synced 2025-12-07 12:37:48 +00:00
examples: add update index example, update README
This commit is contained in:
@@ -29,5 +29,7 @@ storage_context = StorageContext.from_defaults(persist_dir='./storage')
|
||||
index = load_index_from_storage(storage_context, service_context=service_context, )
|
||||
|
||||
query_engine = index.as_query_engine()
|
||||
response = query_engine.query("XXXXXX your question here XXXXX")
|
||||
print(response)
|
||||
|
||||
data = input("Question: ")
|
||||
response = query_engine.query(data)
|
||||
print(response)
|
||||
|
||||
Reference in New Issue
Block a user