Find answers from the community

S
Slurm
Offline, last seen 3 months ago
Joined September 25, 2024
ok so the code i pasted is going query only, it is just searching within the documents i indexed.

but if i want to develop a chat bot that can converse in the manner of james bond, or sherlock holms, or myself, i need to fine-tune it, which requires expensive hardware and human resources over multiple months.

now i am reading about RAG
1 comment
T
S
Slurm
·

RAG

it is reading documents from the "data" directory, to do what?
30 comments
v
S
W
S
Slurm
·

Code

people i am following the llama-index documentation to the word, copy/pasting the code but i am getting this error: TypeError: 'RetrieverQueryEngine' object is not callable how do i fix this error?
1 comment
L
S
Slurm
·

TypeError

people i am following the llama-index documentation to the word, copy/pasting the code
Plain Text
documents = SimpleDirectoryReader('Knowlege').load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine('what are these documents about?')
print(response)

but i am getting this error: TypeError: 'RetrieverQueryEngine' object is not callable
how do i fix this error?
14 comments
S
W