save all
This commit is contained in:
7
test/llamaindex/data/test1.py
Normal file
7
test/llamaindex/data/test1.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
|
||||
|
||||
documents = SimpleDirectoryReader("data").load_data()
|
||||
index = VectorStoreIndex.from_documents(documents)
|
||||
query_engine = index.as_query_engine()
|
||||
response = query_engine.query("Some question about the data should go here")
|
||||
print(response)
|
||||
Reference in New Issue
Block a user