-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add Oracle23ai as a vector datasource #5342
Conversation
there are some conflicts that need to be resolved, thx! |
conflicts fixed, thx! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to the current version being in the transition period from pip to poetry, we need to add oracledb = "~2.2.1" to api/pyproject.toml [tool.poetry.dependencies]. Thank you very much.
Yeah, I added the oracledb dependency in pyproject.toml. By the way, I don’t have much experience with pull requests, so if there is anything I can do, please let me know and I will do my best to push this feature. Thanks! |
In "API Tests" when goes to "Set Up Vector Store" step, i can't see docker/docker-compose.oracle.yaml runs, what am i missing? |
Oh, starting an oracle DB in GitHub action might be a disaster, don't you think? 😅 Proper unit testing is beneficial for us. |
Because the docker image is relatively large, it may require more resources, yeah 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Need to fix the issues with lint and testing. |
Pls check, Thanks. |
Ops, still having issues. |
Sorry, a mistake, overwritten by conflict file. |
What can i do for this "Python Style Expected — Waiting for status to be reported" |
Test failed, maybe you can add some mock logic 😅 |
Thanks, i went into the details, and i think now i know how to do more test in my local env. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add start oracle docker in api-tests.yaml
You can use
|
Got, do it right now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
This feature, I mean support for Oracle 23 ai as a vector data source, which version will it be released with? |
Co-authored-by: walter from vm <walter.jin@oracle.com>
* refs/heads/deploy/dev: (273 commits) chore: host required fix: monitor copywrite feat: make show citations enable default chore: use singular style in middleware config class name (#5502) refactor: extract hosted service configs into dify config (#5504) fix: summary of duckduckgo_search (#5488) fix: zhipu tool calling, this PR fixes the bug described in issue #5496 (#5469) fix: tongyi json output (#5396) fix: firecrawl apikey not start with fc- (#5498) fix lock refactor: extract db configs and celery configs into dify config (#5491) refactor: extract storage provider configs into dify configs (#5443) chore: use singular style in config class name (#5489) chore: remove pip support for api service (#5453) Add Oracle23ai as a vector datasource (#5342) build: support Poetry for depencencies tool in api's Dockerfile (#5105) feat: add ops trace encrypt_config decrypt_config obfuscate_config feat: add remove tracing app fix: max_tokens of qwen-plus & qwen-plus-chat (#5480) feat: add support for Vertex AI claude-3-5-sonnet@20240620 (#5475) ...
Description
Add Oracle23ai as a new vector datasource
Oracle23ai Easily bring the power of similarity search to your business data without having to manage and integrate multiple databases. AI Vector Search enables you to search structured and unstructured data based on its semantics or meaning, in addition to its values. Native vector capabilities can help large language models (LLMs) deliver more-accurate and contextually relevant results with retrieval-augmented generation (RAG).
Change/Add List:
api/config.py
api/controllers/console/datasets/datasets.py
api/core/rag/datasource/vdb/vector_factory.py
api/core/rag/datasource/vdb/vector_type.py
api/requirements.txt
api/core/rag/datasource/vdb/oracle/oraclevector.py
docker/startupscripts/create_user.sql
api/tests/integration_tests/vdb/oracle/test_oraclevector.py
docker/docker-compose.yaml
Dependence:
oracledb==2.2.1
Type of Change
How Has This Been Tested?
Suggested Checklist:
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint godsoptional
I have made corresponding changes to the documentationoptional
I have added tests that prove my fix is effective or that my feature worksoptional
New and existing unit tests pass locally with my changes