Skip to content

Feat: ​​OpenSearch's support for newly embedding models​​ - #10494

Merged
KevinHuSh merged 2 commits into
infiniflow:mainfrom
pyyuhao:vector_dimension
Oct 11, 2025
Merged

KevinHuSh merged 2 commits into
infiniflow:mainfrom
pyyuhao:vector_dimension

Conversation

@pyyuhao

@pyyuhao pyyuhao commented Oct 11, 2025 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

fix issues:#10402

As the newly distributed embedding models support vector dimensions max to 4096, while current OpenSearch's max dimension support is 1536.
As I tested, the 4096-dimensions vector will be treated as a float type which is unacceptable in OpenSearch.

Besides, OpenSearch supports max to 16000 dimensions by defalut with the vector engine(Faiss). According to: https://docs.opensearch.org/2.19/field-types/supported-field-types/knn-methods-engines/

I added max to 10240 dimensions support for OpenSearch, as I think will be sufficient in the future.

As I tested , it worked well on my own server (treated as knn_vector)by using qwen3-embedding:8b as the embedding model:
image

Type of change

  • New Feature (non-breaking change which adds functionality)

By the way, I will still focus on the stuff about Elasticsearch/Opensearch as search engines and vector databases.

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 💞 feature Feature request, pull request that fullfill a new feature. labels Oct 11, 2025
@KevinHuSh KevinHuSh added the ci Continue Integration label Oct 11, 2025
@KevinHuSh
KevinHuSh merged commit ad56137 into infiniflow:main Oct 11, 2025
@pyyuhao
pyyuhao deleted the vector_dimension branch October 13, 2025 02:01
yngvarhuang pushed a commit to yngvarhuang/ragflow that referenced this pull request Oct 13, 2025
* main: (36 commits)
  Feat: Merge title splitter and token splitter into chunker category infiniflow#9869 (infiniflow#10517)
  Fix: Optimized the login page and fixed some known issues. infiniflow#9869 (infiniflow#10514)
  Fix: The Context Generator(Transformer) node can only be followed by a Tokenizer(Indexer) and a Context Generator(Transformer). infiniflow#9869 (infiniflow#10515)
  Fix: Update lm studio models support, refer to infiniflow#8116 (infiniflow#10509)
  Feat: add trino support (infiniflow#10512)
  Fix: maintain backward compatibility for KB tasks (infiniflow#10508)
  fix: decode before format to json (infiniflow#10506)
  Feat: Modify the background color of the canvas infiniflow#9869 (infiniflow#10507)
  Fix: Mcp reset error, infiniflow#10497 (infiniflow#10498)
  Feat: ​​OpenSearch's support for newly embedding models​​ (infiniflow#10494)
  Fix: remove lang for autio. (infiniflow#10496)
  Fix: incorrect agent template infiniflow#10393 (infiniflow#10491)
  Feat: add support for multi-column PDF parsing (infiniflow#10475)
  Fix: Added table of contents extraction functionality and optimized form item layout infiniflow#9869 (infiniflow#10492)
  Feat: Modify the default style of the agent node anchor infiniflow#9869 (infiniflow#10489)
  Feat: debugging toc part. (infiniflow#10486)
  Feat:  include author, journal name, volume, issue, page, and DOI in PubMed search results (infiniflow#10481)
  feat(login): Refactor the login page and add dynamic background and highlight effects infiniflow#9869 (infiniflow#10482)
  Fix: Fixed the issue where the connection lines of placeholder nodes in the agent canvas could not be displayed infiniflow#9869 (infiniflow#10485)
  Fix: Disable reasoning on Gemini 2.5 Flash by default (infiniflow#10477)
  ...
clifftseng pushed a commit to clifftseng/ragflow that referenced this pull request Feb 9, 2026
…#10494)

### What problem does this PR solve?

fix issues:infiniflow#10402

As the newly distributed embedding models support vector dimensions max
to 4096, while current OpenSearch's max dimension support is 1536.
As I tested, the 4096-dimensions vector will be treated as a float type
which is unacceptable in OpenSearch.

Besides, OpenSearch supports max to 16000 dimensions by defalut with the
vector engine(Faiss). According to:
https://docs.opensearch.org/2.19/field-types/supported-field-types/knn-methods-engines/

I added max to 10240 dimensions support for OpenSearch, as I think will
be sufficient in the future.

As I tested , it worked well on my own server (treated as knn_vector)by
using qwen3-embedding:8b as the embedding model:
<img width="1338" height="790" alt="image"
src="https://github.com/user-attachments/assets/a9b2d284-fcf6-4cea-859a-6aadccf36ace"
/>


### Type of change

- [x] New Feature (non-breaking change which adds functionality)


By the way, I will still focus on the stuff about
Elasticsearch/Opensearch as search engines and vector databases.

Co-authored-by: 张雨豪 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration 💞 feature Feature request, pull request that fullfill a new feature. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants