Skip to content

Commit dd9c38a

Browse files
committed
update top k
1 parent 10e6fd6 commit dd9c38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/retrieval_graph/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ async def respond(
204204
configuration = AgentConfiguration.from_runnable_config(config)
205205
model = load_chat_model(configuration.response_model)
206206
# TODO: add a re-ranker here
207-
top_k = 10
207+
top_k = 20
208208
context = format_docs(state.documents[:top_k])
209209
prompt = configuration.response_system_prompt.format(context=context)
210210
messages = [{"role": "system", "content": prompt}] + state.messages

0 commit comments

Comments
 (0)