I'm encountering an issue with querying when training a docx file containing a description of the content I need to search for. However, when I query, I can't retrieve the desired content. Instead, the result I receive is from a different part within the file.
Please let me know how to handle this. Thank you all very much.
You can check the nodes it is fetching based on your query and then check further from there:
Plain Text
# to check the nodes it used to generate answer:
print(response.source_nodes)
# If you storing index locally, check all the nodes like this:
print(index.docstore.docs)
In my data, it talks about a musician named A. It also mentions that 'Musician A once acted in movie B'. However, when I query 'Has A ever acted in any movies?', I receive the answer 'There is no data mentioning that Mr. A has ever acted in movies'. But when I ask 'Has he ever acted in any movies?', I get back the result 'Mr. A has acted in a movie called B'. I am very curious why there are two different results like this.
/////////////////////////////////////////// There is one more issue. When I describe at length, the result cannot capture the entire description but only gets the beginning. How can I make it capture everything