Skip to content

CodGen Examples using-RAG-and-Agents #1757

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 4 commits into from
Apr 9, 2025

Conversation

MSCetin37
Copy link
Collaborator

@MSCetin37 MSCetin37 commented Apr 4, 2025

Description

Adding RAG-and-Agents and new UI to CodGen examples.

Issues

#1744

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)
  • [ x] 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

CodeGen/tests/test_compose_on_gaudi.sh
CodeGen/tests/test_compose_on_xeon.sh

Copy link

github-actions bot commented Apr 4, 2025

Dependency Review

The following issues were found:
  • ❌ 1 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

Vulnerabilities

CodeGen/ui/gradio/requirements.txt

NameVersionVulnerabilitySeverity
gradio5.22.0Gradio DOS in multipart boundry while uploading the filehigh

License Issues

CodeGen/ui/gradio/requirements.txt

PackageVersionLicenseIssue Type
Pillow10.3.0NullUnknown License

Scanned Files

  • CodeGen/ui/gradio/requirements.txt

@MSCetin37 MSCetin37 added the WIP label Apr 4, 2025
@MSCetin37 MSCetin37 added this to the v1.3 milestone Apr 4, 2025
@MSCetin37 MSCetin37 force-pushed the codegen/rag_agents branch 8 times, most recently from 876c68b to 9a2d9cf Compare April 8, 2025 23:39
@joshuayao joshuayao added this to OPEA Apr 9, 2025
@joshuayao joshuayao moved this to In review in OPEA Apr 9, 2025
Signed-off-by: Mustafa <mustafa.cetin@intel.com>

initial

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update for codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add agents

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

env updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

merged to main

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the env variables

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update compose.yaml

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

compose.yaml updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

Gradio UI for CodeGen (#4)

* update the compose file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

initial

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

added microservice ports

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update for codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

Initial commit for Gradio UI

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

New UI

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

prepare for merge

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

add agents

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

env updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

merged to main

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

UI Updates

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added dockerfile

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

removed files dataframe

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

updated file upload

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added checkbox for agent

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

key_index_name --> index_name

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added / removed print statements

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

Support for data streaming (from Melanie)

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

fixed file not supported bug

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added refresh button to index

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

simplified README

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* updated readme and fixed merge

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* reverted changes

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

---------

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
Co-authored-by: Mustafa <mustafa.cetin@intel.com>

add cpu xeon test

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add cpu xeon test

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update gaudi test and compose

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update gaudi test and compose

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update gaudi compose

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

ui changes after rebase (#6)

* parent 580d33b
author Mustafa <mustafa.cetin@intel.com> 1739513513 -0800
committer Mustafa <mustafa.cetin@intel.com> 1743715605 -0700

parent 580d33b
author Mustafa <mustafa.cetin@intel.com> 1739513513 -0800
committer Mustafa <mustafa.cetin@intel.com> 1743714982 -0700

update the compose file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

initial

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update for codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add agents

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

env updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

merged to main

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the env variables

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update compose.yaml

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

compose.yaml updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the compose file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

initial

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

added microservice ports

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update for codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

Initial commit for Gradio UI

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

New UI

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

prepare for merge

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

add agents

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

env updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

merged to main

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

UI Updates

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added dockerfile

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

removed files dataframe

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

updated file upload

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added checkbox for agent

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

key_index_name --> index_name

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added / removed print statements

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

Support for data streaming (from Melanie)

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

fixed file not supported bug

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added refresh button to index

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

simplified README

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

updated readme and fixed merge

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

reverted changes

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

bug fixes and ui updates

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

add cpu xeon test

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add cpu xeon test

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

fixed output for index uses

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added services for gaudi

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

update gaudi test and compose

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

added error handling for exceeded token size

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

update the compose file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

initial

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update for codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add agents

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

env updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

merged to main

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the env variables

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update compose.yaml

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

compose.yaml updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update readme

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

Gradio UI for CodeGen (#4)

* update the compose file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

initial

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

added microservice ports

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update for codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

Initial commit for Gradio UI

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

New UI

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

prepare for merge

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

add agents

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

env updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update codegen

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

merged to main

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

UI Updates

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added dockerfile

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

removed files dataframe

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

updated file upload

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added checkbox for agent

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

key_index_name --> index_name

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added / removed print statements

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

Support for data streaming (from Melanie)

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

fixed file not supported bug

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added refresh button to index

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

simplified README

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* updated readme and fixed merge

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* reverted changes

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

---------

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
Co-authored-by: Mustafa <mustafa.cetin@intel.com>

add cpu xeon test

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add cpu xeon test

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

codegen code cleaning

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

xeon --> gaudi

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

made tests like codegen ragagents branch

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

added back \n

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* code updates

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

---------

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
Signed-off-by: Mustafa <mustafa.cetin@intel.com>

code udates for test-xeon

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update test files for gauidi

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

Documentation Updates, Screenshots and Improvements (#7)

* Improved README and added information

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* removed stray $

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* renamed dummy file names

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

* codegen_ui_gradio.py comment + print cleanup

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

---------

Signed-off-by: okhleif-IL <omar.khleif@intel.com>

update README file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update README file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

updates readme files

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

add images

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

update README file

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the test files

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the test files

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the test files

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update the test files - add services

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

update test-gaudi

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update test-gaudi

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update test files

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

update build.yaml

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update tests

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

update tests

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

update test-files

Signed-off-by: Mustafa <mustafa.cetin@intel.com>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
@MSCetin37 MSCetin37 force-pushed the codegen/rag_agents branch from 16cf76b to e0929cb Compare April 9, 2025 06:00
@joshuayao joshuayao added the feature New feature or request label Apr 9, 2025
@lvliang-intel lvliang-intel requested a review from letonghan April 9, 2025 07:52
@lvliang-intel lvliang-intel merged commit 892624f into opea-project:main Apr 9, 2025
19 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in OPEA Apr 9, 2025
@MSCetin37 MSCetin37 added v1.3 and removed WIP labels Apr 9, 2025
Mahathi-Vatsal pushed a commit to Mahathi-Vatsal/GenAIExamples that referenced this pull request Apr 9, 2025
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Mahathi Vatsal <mahathi.vatsal.salopanthula@intel.com>
cwlacewe pushed a commit to cwlacewe/GenAIExamples that referenced this pull request Apr 11, 2025
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Lacewell, Chaunte W <chaunte.w.lacewell@intel.com>
chyundunovDatamonsters pushed a commit to chyundunovDatamonsters/OPEA-GenAIExamples that referenced this pull request May 16, 2025
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Chingis Yundunov <c.yundunov@datamonsters.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request v1.3
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants