Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
change: switch blueprints from subquery to basic retriever and increa…
Browse files Browse the repository at this point in the history
…se topK default to 20
  • Loading branch information
iwilltry42 committed Oct 4, 2024
1 parent c0c611d commit 91174fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
15 changes: 4 additions & 11 deletions pkg/flows/config/blueprints/context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ flows:
retriever:
name: merge
options:
topK: 10
topK: 20
retrievers:
- name: subquery
- name: basic
weight: 0.7
options:
limit: 3 # max. 3 subqueries
topK: 10 # topK per search
model:
openai:
apiKey: "${OPENAI_API_KEY}"
model: gpt-4o
apiType: OPEN_AI
baseURL: "${OPENAI_BASE_URL}"
topK: 20
- name: bm25
weight: 0.3
options:
Expand All @@ -42,7 +35,7 @@ flows:
threshold: 0.4
- name: reduce
options:
topK: 10
topK: 20



13 changes: 3 additions & 10 deletions pkg/flows/config/blueprints/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@ flows:
apiType: OPEN_AI
baseURL: "${OPENAI_BASE_URL}"
retriever:
name: subquery
name: basic
options:
limit: 3 # max. 3 subqueries
topK: 10 # topK per search
model:
openai:
apiKey: "${OPENAI_API_KEY}"
model: gpt-4o
apiType: OPEN_AI
baseURL: "${OPENAI_BASE_URL}"
topK: 20
postprocessors:
- name: similarity
options:
threshold: 0.6
- name: reduce
options:
topK: 10
topK: 20



0 comments on commit 91174fc

Please sign in to comment.