-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DERCBOT-1173] Indexing improvements & RAG Evaluation on langfuse (#1767
- Loading branch information
Showing
21 changed files
with
1,956 additions
and
1,548 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
2,379 changes: 1,219 additions & 1,160 deletions
2,379
gen-ai/orchestrator-server/src/main/python/server/poetry.lock
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
13 changes: 13 additions & 0 deletions
13
gen-ai/orchestrator-server/src/main/python/tock-llm-indexing-tools/.env
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,13 @@ | ||
#for LangFuse dataset provider | ||
LANGFUSE_SECRET_KEY= | ||
LANGFUSE_PUBLIC_KEY= | ||
LANGFUSE_HOST= | ||
|
||
# for LangsSmith dataset_provider | ||
LANGCHAIN_API_KEY= | ||
|
||
# for smarttribune_consumer.py script | ||
API_KEY= | ||
API_SECRET= | ||
|
||
|
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
Binary file modified
BIN
-38.1 KB
(88%)
...rator-server/src/main/python/tock-llm-indexing-tools/docs/rag_testing_tools.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
gen-ai/orchestrator-server/src/main/python/tock-llm-indexing-tools/examples/.exemple.env
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,11 @@ | ||
#for LangFuse dataset provider | ||
LANGFUSE_SECRET_KEY= | ||
LANGFUSE_PUBLIC_KEY= | ||
LANGFUSE_HOST= | ||
|
||
# for LangsSmith dataset_provider | ||
LANGCHAIN_API_KEY= | ||
|
||
# for smarttribune_consumer.py script | ||
API_KEY= | ||
API_SECRET= |
55 changes: 55 additions & 0 deletions
55
...chestrator-server/src/main/python/tock-llm-indexing-tools/examples/rag_query.example.json
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,55 @@ | ||
{ | ||
"history": [], | ||
"question_answering_llm_setting": { | ||
"provider": "AzureOpenAIService", | ||
"api_key": { | ||
"type": "Raw", | ||
"value": "*****************" | ||
}, | ||
"model": "gpt-4o", | ||
"deployment_name": "*******************", | ||
"repetition_penalty":1.0, | ||
"max_new_tokens":256, | ||
"api_base": "******************************", | ||
"api_version": "2024-03-01-preview", | ||
"temperature": 0.4 , | ||
"prompt": "Use the following context to answer the question at the end.\nIf you don't know the answer, just say {no_answer}.\n Context: {context}\nQuestion: {question} \n Answer in {locale}:" | ||
}, | ||
"question_answering_prompt_inputs": { | ||
"question": "How to get started playing guitar ?", | ||
"no_answer": "Sorry, I don't know.", | ||
"locale": "French" | ||
}, | ||
"embedding_question_em_setting": { | ||
"provider": "AzureOpenAIService", | ||
"api_key": { | ||
"type": "Raw", | ||
"value": "*****************************" | ||
}, | ||
"deployment_name": "********************", | ||
"api_base": "***********************************", | ||
"api_version": "2024-03-01-preview", | ||
"model": "text-embedding-ada-002" | ||
}, | ||
"document_index_name": "ns-03-bot-cmso", | ||
"document_search_params": { | ||
"provider": "OpenSearch", | ||
"filter": [ | ||
{ | ||
"term": { | ||
"metadata.index_session_id.keyword": "****************************************" | ||
} | ||
} | ||
], | ||
"k": 4 | ||
}, | ||
"observability_setting": { | ||
"provider": "Langfuse", | ||
"url": "http://localhost:3000", | ||
"secret_key":{ | ||
"type": "Raw", | ||
"value": "************************" | ||
}, | ||
"public_key":"********************************" | ||
} | ||
} |
Oops, something went wrong.