mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 10:09:08 +00:00
chore: more context to reranker
This commit is contained in:
parent
a58550818b
commit
d3540d8cc5
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ async def rerank_documents(state: State, config: RunnableConfig) -> Dict[str, An
|
|||
try:
|
||||
# Use the sub-section questions for reranking context
|
||||
# rerank_query = "\n".join(sub_section_questions)
|
||||
rerank_query = configuration.user_query
|
||||
# rerank_query = configuration.user_query
|
||||
|
||||
rerank_query = configuration.user_query + "\n" + "\n".join(sub_section_questions)
|
||||
|
||||
# Convert documents to format expected by reranker if needed
|
||||
reranker_input_docs = [
|
||||
|
|
Loading…
Add table
Reference in a new issue