Skip to content
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

Embeddings plugin example generates undefined property #849

Closed
tahpot opened this issue Nov 28, 2024 · 3 comments
Closed

Embeddings plugin example generates undefined property #849

tahpot opened this issue Nov 28, 2024 · 3 comments

Comments

@tahpot
Copy link

tahpot commented Nov 28, 2024

Describe the bug

I have copied the exact code from the embeddings example (https://docs.orama.com/open-source/plugins/plugin-embeddings) and I receive the following error when attempting to search:

node_modules/@orama/orama/dist/commonjs/methods/search-vector.js:17
    const vectorIndex = orama.data.index.vectorIndexes[vector.property];
                                                              ^

TypeError: Cannot read properties of undefined (reading 'property')

To Reproduce

Execute the exact demo code here: https://docs.orama.com/open-source/plugins/plugin-embeddings

Expected behavior

Expected a search result, but receive an internal error in Orama.

Environment Info

OS: Sonoma 14.6.1
Arch: Apple M1 Max ARM64
Node: 18.20.5
Orama: 3.0.2

Affected areas

Search

Additional context

No response

@micheleriva
Copy link
Member

Looking into that right now

@micheleriva
Copy link
Member

Issue identified. It requires a pretty big refactoring but I'll try to make it this week.

@micheleriva
Copy link
Member

Fixed in #852, will make a release today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants