Skip to content

Bump: ChatQnA Example with OpenAI-Compatible Endpoint#2091

Merged
joshuayao merged 56 commits intoopea-project:mainfrom
edlee123:chatqna_w_endpoints
Oct 29, 2025
Merged

Bump: ChatQnA Example with OpenAI-Compatible Endpoint#2091
joshuayao merged 56 commits intoopea-project:mainfrom
edlee123:chatqna_w_endpoints

Conversation

@edlee123
Copy link
Copy Markdown
Contributor

@edlee123 edlee123 commented Jun 24, 2025

Description

Allows ChatQnA to be used with hundreds of OpenAI-like endpoints e.g. OpenRouter.ai, Hugging Face, Denvr, and improve the developer experience to use OPEA quickly even on low resource environments.

Key Changes Made:

  • Created ChatQnA/docker_compose/intel/cpu/xeon/README_endpoint_openai.md: instructions to spin up example.
  • Created ChatQnA/docker_compose/intel/cpu/xeon/compose_endpoint_openai.yaml: replaces vLLM with an opeai-like endpoint

Also:

  • Fixed align_generator function to properly detect and skip chunks where content is null in open-ai like endpoints. Previously it'd show the null json in the UI.
  • Added better error handling and debug logging for easier troubleshooting of endpoint issues.

Issues

N/A

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

N/A

Tests

OpenRouter.ai: anthropic/claude-3.7-sonnet
Denvr: meta-llama/Llama-3.1-70B-Instruct
Hugging Face Inference Endpoint: microsoft/phi-4

edlee123 and others added 30 commits June 24, 2025 18:08
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…w null json. Also improved exception handling and logging

Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…yaml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Integrate MultimodalQnA set_env to ut scripts.
Add README.md for UT scripts.

Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…nt (opea-project#1996)

Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: Yi Yao <yi.a.yao@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…2030)

Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…d HybridRAG (opea-project#2037)

Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…archQnA and Translation (opea-project#2038)

update secrets token name for ProductivitySuite, RerankFinetuning, SearchQnA and Translation
Fix shellcheck issue

Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…rkflowExecAgent (opea-project#2039)

update secrets token name for InstructionTuning, MultimodalQnA and WorkflowExecAgent
Fix shellcheck issue

Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: Yongbozzz <yongbo.zhu@intel.com>
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
…pea-project#1981)

Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
@joshuayao joshuayao added this to the v1.4 milestone Aug 14, 2025
@joshuayao joshuayao added this to OPEA Aug 14, 2025
@joshuayao joshuayao moved this to In progress in OPEA Aug 14, 2025
@edlee123 edlee123 changed the title ChatQnA Example with OpenAI-Compatible Endpoint Bump: ChatQnA Example with OpenAI-Compatible Endpoint Aug 26, 2025
@CICD-at-OPEA
Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@emtl97
Copy link
Copy Markdown

emtl97 commented Sep 26, 2025

Appreciate a review pls.

@CICD-at-OPEA
Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@emtl97
Copy link
Copy Markdown

emtl97 commented Oct 27, 2025

Appreciate another approval pls. This works with a few open AI compatible endpoints not just vllm.

@joshuayao
Copy link
Copy Markdown
Collaborator

joshuayao commented Oct 28, 2025

Appreciate another approval pls. This works with a few open AI compatible endpoints not just vllm.

@emtl97 @edlee123 Thanks for your contribution. We will merge the PR if the CI tests complete successfully.

@joshuayao joshuayao modified the milestones: v1.4, v1.5 Oct 29, 2025
@joshuayao joshuayao merged commit 4f620f0 into opea-project:main Oct 29, 2025
19 of 20 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in OPEA Oct 29, 2025
@joshuayao
Copy link
Copy Markdown
Collaborator

Appreciate another approval pls. This works with a few open AI compatible endpoints not just vllm.

@emtl97 @edlee123 Thanks for your contribution. We will merge the PR if the CI tests complete successfully.

@emtl97 @edlee123 Merged.

yao531441 added a commit that referenced this pull request Nov 4, 2025
Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Yi Yao <yi.a.yao@intel.com>
Signed-off-by: Yongbozzz <yongbo.zhu@intel.com>
Signed-off-by: CICD-at-OPEA <CICD@opea.dev>
Signed-off-by: Ezequiel Lanza <ezequiel.lanza@gmail.com>
Signed-off-by: Wang, Xigui <xigui.wang@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ZePan110 <ze.pan@intel.com>
Co-authored-by: chen, suyue <suyue.chen@intel.com>
Co-authored-by: Mustafa <109312699+MSCetin37@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yi Yao <yi.a.yao@intel.com>
Co-authored-by: Zhenzhong Xu <zhenzhong.xu@intel.com>
Co-authored-by: Zhu Yongbo <yongbo.zhu@intel.com>
Co-authored-by: CICD-at-OPEA <cicd@opea.dev>
Co-authored-by: Eze Lanza (Eze) <40643766+ezelanza@users.noreply.github.com>
Co-authored-by: xiguiw <111278656+xiguiw@users.noreply.github.com>
Co-authored-by: Yao Qing <Qing.Yao@intel.com>
Signed-off-by: Yao, Qing <qing.yao@intel.com>
cogniware-devops pushed a commit to Cogniware-Inc/GenAIExamples that referenced this pull request Dec 19, 2025
)

Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Yi Yao <yi.a.yao@intel.com>
Signed-off-by: Yongbozzz <yongbo.zhu@intel.com>
Signed-off-by: CICD-at-OPEA <CICD@opea.dev>
Signed-off-by: Ezequiel Lanza <ezequiel.lanza@gmail.com>
Signed-off-by: Wang, Xigui <xigui.wang@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ZePan110 <ze.pan@intel.com>
Co-authored-by: chen, suyue <suyue.chen@intel.com>
Co-authored-by: Mustafa <109312699+MSCetin37@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yi Yao <yi.a.yao@intel.com>
Co-authored-by: Zhenzhong Xu <zhenzhong.xu@intel.com>
Co-authored-by: Zhu Yongbo <yongbo.zhu@intel.com>
Co-authored-by: CICD-at-OPEA <cicd@opea.dev>
Co-authored-by: Eze Lanza (Eze) <40643766+ezelanza@users.noreply.github.com>
Co-authored-by: xiguiw <111278656+xiguiw@users.noreply.github.com>
Co-authored-by: Yao Qing <Qing.Yao@intel.com>
Signed-off-by: cogniware-devops <ambarish.desai@cogniware.ai>
cogniware-devops pushed a commit to Cogniware-Inc/GenAIExamples that referenced this pull request Dec 19, 2025
)

Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Yi Yao <yi.a.yao@intel.com>
Signed-off-by: Yongbozzz <yongbo.zhu@intel.com>
Signed-off-by: CICD-at-OPEA <CICD@opea.dev>
Signed-off-by: Ezequiel Lanza <ezequiel.lanza@gmail.com>
Signed-off-by: Wang, Xigui <xigui.wang@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ZePan110 <ze.pan@intel.com>
Co-authored-by: chen, suyue <suyue.chen@intel.com>
Co-authored-by: Mustafa <109312699+MSCetin37@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yi Yao <yi.a.yao@intel.com>
Co-authored-by: Zhenzhong Xu <zhenzhong.xu@intel.com>
Co-authored-by: Zhu Yongbo <yongbo.zhu@intel.com>
Co-authored-by: CICD-at-OPEA <cicd@opea.dev>
Co-authored-by: Eze Lanza (Eze) <40643766+ezelanza@users.noreply.github.com>
Co-authored-by: xiguiw <111278656+xiguiw@users.noreply.github.com>
Co-authored-by: Yao Qing <Qing.Yao@intel.com>
Signed-off-by: cogniware-devops <ambarish.desai@cogniware.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.