response = index.query("What did the author do growing up?")which of course results in
zsh: unknown file attribute: h
response
being empty:print(response)Any idea on what causes this, what it means and how it can be fixed?
zsh: missing end of string
python my_script.py
?llama-index-test.py
from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader
documents = SimpleDirectoryReader('data').load_data()
index = GPTSimpleVectorIndex.from_documents(documents)
./llama-index-test.py
python ./llama-index-test.py
π€(llama-env) AHH-2015:paul_graham_essay albrech$ python ./llama-index-test.py
INFO:llama_index.token_counter.token_counter:> [build_index_from_nodes] Total LLM token usage: 0 tokens
INFO:llama_index.token_counter.token_counter:> [build_index_from_nodes] Total embedding token usage: 17617 tokens
(llama-env) AHH-2015:paul_graham_essay albrech$ response = index.query("What did the author do growing up?")
-bash: syntax error near unexpected token
('`llama-index-test.py
(which runs correctly, and yes, I had run it using python
first. The error is in the subsequent response
.response = index.query(...),
line inside of the llama-index-test.py
script. response
part inside the llama-index-test.py
script for it to find the index. I'll take it from there. Thank you for your assistance! π