In llm_engineering/application/rag/query_expanison.py:
response = chain.invoke({"question": query})
It will use str(query), which includes not only content, but also id, author_id, author_full_name, metadata, which are irrelevant to the question. So it's better to change it to
response = chain.invoke({"question": query.content})
In
llm_engineering/application/rag/query_expanison.py:It will use str(query), which includes not only content, but also id, author_id, author_full_name, metadata, which are irrelevant to the question. So it's better to change it to