mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 18:45:00 +00:00
examples: add update index example, update README
This commit is contained in:
parent
6ed7b10273
commit
4f551ce414
3 changed files with 60 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue