generated from wesen/wesen-go-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
7 changed files
with
120 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "search-insights" | ||
short: "Search through summaries using embeddings and keywords" | ||
long: "Search through the summaries using both semantic similarity via embeddings and keyword/fuzzy matching for better results" | ||
|
||
flags: | ||
- name: query | ||
type: string | ||
help: "Search text to find similar content" | ||
required: true | ||
- name: k | ||
type: int | ||
help: "Number of results to return" | ||
default: 5 | ||
|
||
default-index: local-testing-multi-document-summarization | ||
|
||
query: | ||
_source: ["content", "title", "url"] | ||
query: | ||
bool: | ||
should: | ||
- knn: | ||
field: content_vector | ||
query_vector: !Embeddings | ||
text: !Var query | ||
config: | ||
type: "openai" | ||
engine: "text-embedding-3-small" | ||
dimensions: 1536 | ||
k: !Var k | ||
num_candidates: 100 | ||
- match: | ||
content: | ||
query: !Var query | ||
boost: 4 | ||
fuzziness: "AUTO" |
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