-
Notifications
You must be signed in to change notification settings - Fork 2
Adding dynamic retrieval pipeline: 3rd attempt #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
989259d
dynamic retriever with native function calling
backurs 21a87cf
fix example yaml file
backurs 0aef3f2
copilot comments
backurs 114f5ae
copilot comments
backurs 19370d3
copilot comments
backurs b5336a8
Merge branch 'main' into arturs/dynamic_3
backurs 67a06f9
refactoring and addressing comments
backurs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,163 @@ | ||
| # Paths (relative to working directory) | ||
| paths: | ||
| questions_path: "" | ||
| output_root: "" | ||
|
|
||
| prune_k: 20 | ||
|
|
||
| # Azure OpenAI / LLM settings | ||
| llm: | ||
| llm_endpoint: "" | ||
| api_version: "" | ||
| llm_model: "" | ||
| temperature: 0.0 | ||
| max_completion_tokens: 2048 | ||
| max_retries: 2 | ||
| premium_max_concurrency: 8 | ||
| prompt_cache_size: 4096 | ||
| use_rbac_auth: true | ||
| token_scope: "" | ||
| llm_api_key: "" | ||
| context_limit: 270000 | ||
|
|
||
| # Embedding settings | ||
| embedding: | ||
| embed_endpoint: "" | ||
| api_version: "" | ||
| embed_model: "" | ||
| embed_dimensions: 1024 | ||
| embed_cache_size: 4096 | ||
| use_rbac_auth: false | ||
| token_scope: "" | ||
| embed_api_key: "" | ||
|
|
||
| # Semantic ranker | ||
| ranker: | ||
| use_ranker: true | ||
| rerank_multiplier: 8 | ||
| k_ranker: 10 | ||
| region: "" | ||
| account_name: "" | ||
| read_token_from_path: false | ||
| access_token_path: "" | ||
| tenant_id: "" | ||
| token_scope: "" | ||
| register_account_path: "" | ||
| url_suffix: "" | ||
| batch_size: 16 | ||
| max_retries: 10 | ||
|
|
||
| # Cosmos DB settings | ||
| cosmos: | ||
| uri: "" | ||
| key: "" | ||
| database_name: "" | ||
| use_rbac_auth: false | ||
|
|
||
| # Upload settings | ||
| cosmos_account_name: "" | ||
| cosmos_resource_group: "" | ||
| azure_subscription_id: "" | ||
| embedding_batch_size: 20 | ||
|
|
||
| vector_embedding_policy_json: | | ||
| { | ||
| "vectorEmbeddings": [ | ||
| { | ||
| "path": "/embedding", | ||
| "dataType": "float32", | ||
| "dimensions": 1024, | ||
| "distanceFunction": "cosine" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| # Configure each source/container independently | ||
| sources: | ||
| - id: "source_1" | ||
| container_name: "container_1" | ||
| partition_key_path: "/pk" | ||
| embedding_field: "embedding" | ||
| documents_root: "" | ||
| embedding_text_fields: | ||
| - title | ||
| - summary | ||
| - content | ||
| retrieval: | ||
| search_k: 10 | ||
| fulltext_search_k: 10 | ||
| fulltext_fields: | ||
| - title | ||
| indexing_policy_json: | | ||
| { | ||
| "indexingMode": "consistent", | ||
| "automatic": true, | ||
| "includedPaths": [ | ||
| { "path": "/*" } | ||
| ], | ||
| "excludedPaths": [ | ||
| { "path": "/\"_etag\"/?" }, | ||
| { "path": "/embedding/*" } | ||
| ], | ||
| "fullTextIndexes": [ | ||
| { "path": "/title" } | ||
| ], | ||
| "vectorIndexes": [ | ||
| { | ||
| "path": "/embedding", | ||
| "type": "diskANN", | ||
| "quantizationByteSize": 192, | ||
| "indexingSearchListSize": 100 | ||
| } | ||
| ] | ||
| } | ||
| full_text_policy_json: | | ||
| { | ||
| "defaultLanguage": "en-US", | ||
| "fullTextPaths": [ | ||
| { "path": "/title", "language": "en-US" } | ||
| ] | ||
| } | ||
|
|
||
| - id: "source_2" | ||
| container_name: "container_2" | ||
| partition_key_path: "/pk" | ||
| embedding_field: "embedding" | ||
| documents_root: "" | ||
| embedding_text_fields: | ||
| - text | ||
| retrieval: | ||
| search_k: 25 | ||
| fulltext_search_k: 0 | ||
| fulltext_fields: | ||
| - text | ||
| indexing_policy_json: | | ||
| { | ||
| "indexingMode": "consistent", | ||
| "automatic": true, | ||
| "includedPaths": [ | ||
| { "path": "/*" } | ||
| ], | ||
| "excludedPaths": [ | ||
| { "path": "/\"_etag\"/?" }, | ||
| { "path": "/embedding/*" } | ||
| ], | ||
| "fullTextIndexes": [ | ||
| { "path": "/text" } | ||
| ], | ||
| "vectorIndexes": [ | ||
| { | ||
| "path": "/embedding", | ||
| "type": "diskANN", | ||
| "quantizationByteSize": 192, | ||
| "indexingSearchListSize": 100 | ||
| } | ||
| ] | ||
| } | ||
| full_text_policy_json: | | ||
| { | ||
| "defaultLanguage": "en-US", | ||
| "fullTextPaths": [ | ||
| { "path": "/text", "language": "en-US" } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.