Skip to content

Commit

Permalink
First Draft of OPEA Triage Tool
Browse files Browse the repository at this point in the history
Signed-off-by: Tsai, Louie <[email protected]>
  • Loading branch information
louie-tsai committed Nov 25, 2024
1 parent f70d9c3 commit c90eb1b
Show file tree
Hide file tree
Showing 3 changed files with 474 additions and 1 deletion.
1 change: 0 additions & 1 deletion ChatQnA/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5"
export RERANK_MODEL_ID="BAAI/bge-reranker-base"
export LLM_MODEL_ID="Intel/neural-chat-7b-v3-3"
Expand Down
70 changes: 70 additions & 0 deletions ChatQnA/tests/ChatQnA_Xeon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"ChatQnA_Xeon": [
{
"service": "env",
"port": "",
"endpoint": "",
"EMBEDDING_MODEL_ID": true,
"RERANK_MODEL_ID": true,
"LLM_MODEL_ID": true,
"INDEX_NAME": true,
"HUGGINGFACEHUB_API_TOKEN": true,
"http_proxy": false,
"https_proxy": false,
"no_proxy": false,
"output": false
},
{
"service": "embed",
"port": "6006",
"endpoint": "embed",
"inputs": "What is Deep Learning?",
"output": "[["
},
{
"service": "dataprep",
"port": "6007",
"endpoint": "/v1/dataprep",
"file_path": "",
"output": "Data preparation succeeded"
},
{
"service": "retrival",
"port": "7000",
"endpoint": "/v1/retrieval",
"text": "test",
"embedding": "",
"output": "retrieved_docs"
},
{
"service": "rerank",
"port": "8808",
"endpoint": "rerank",
"query": "What is Deep Learning?",
"texts": ["Deep Learning is not...", "Deep learning is..."],
"output": "index"
},
{
"service": "llm",
"port": "9009",
"endpoint": "v1/chat/completions",
"model": "Intel/neural-chat-7b-v3-3",
"messages": [{"role": "user", "content": "What is Deep Learning?"}],
"output": "generated_text"
},
{
"service": "nginx",
"port": "80",
"endpoint": "v1/chatqna",
"messages": "What is the revenue of Nike in 2023?",
"output": "data: "
},
{
"service": "mega",
"port": "8888",
"endpoint": "v1/chatqna",
"messages": "What is the revenue of Nike in 2023?",
"output": "data: "
}
]
}
Loading

0 comments on commit c90eb1b

Please sign in to comment.