This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afb9d38
commit b164f86
Showing
8 changed files
with
100 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package config | ||
|
||
import ( | ||
_ "embed" | ||
"fmt" | ||
) | ||
|
||
//go:embed blueprints/default.yaml | ||
var BlueprintDefault []byte | ||
|
||
var Blueprints = map[string][]byte{ | ||
"default": BlueprintDefault, | ||
} | ||
|
||
func GetBlueprint(name string) ([]byte, error) { | ||
bp, ok := Blueprints[name] | ||
if !ok { | ||
return nil, fmt.Errorf("blueprint %q not found", name) | ||
} | ||
return bp, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
flows: | ||
knowledge: | ||
default: true | ||
globals: | ||
ingestion: | ||
textsplitter: | ||
chunkSize: 800 | ||
chunkOverlap: 400 | ||
ingestion: | ||
- filetypes: ["*"] | ||
retrieval: | ||
querymodifiers: | ||
# Enhance | ||
- name: enhance | ||
options: | ||
model: | ||
openai: | ||
apiKey: "${OPENAI_API_KEY}" | ||
model: gpt-4o | ||
apiType: OPEN_AI | ||
baseURL: https://api.openai.com/v1 | ||
retriever: | ||
name: subquery | ||
options: | ||
limit: 3 # max. 3 subqueries | ||
topK: 10 # topK per search | ||
model: | ||
openai: | ||
apiKey: "${OPENAI_API_KEY}" | ||
model: gpt-4o | ||
apiType: OPEN_AI | ||
baseURL: https://api.openai.com/v1 | ||
postprocessors: | ||
- name: similarity | ||
options: | ||
threshold: 0.6 | ||
- name: reduce | ||
options: | ||
topK: 10 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters