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

Retrieval based in two sbert models #53

Open
miguelwon opened this issue Jan 25, 2023 · 3 comments
Open

Retrieval based in two sbert models #53

miguelwon opened this issue Jan 25, 2023 · 3 comments

Comments

@miguelwon
Copy link

Hi,
I'm currently working in a system where I score the document based on a calculated score from two separate retrievals, each one with it's own sbert model (a linear sum of two cosine similarities) . Is this type of query possible with weaviate? If so, is there any example I can have look?
Thanks!

@bobvanluijt
Copy link
Member

Hi @miguelwon

Are you storing the output in different classes?

@miguelwon
Copy link
Author

Hi @bobvanluijt . Not sure what you mean by that. I'm not storing the output. I want to retrieve an instance from a DB, where for each instance I have two embeddings, needed to calculate a cosine similarity and add the result with a weighted average. I would like to know if weaviate allows to do this type of operations. To sum up, I want something similar with a common DB text retrieval, where we can give weights to different fields of the indexer.

@bobvanluijt
Copy link
Member

Hi @miguelwon

[...] where we can give weights to different fields of the indexer.

That's certainly possible, but you have to store the results (probably) in different classes. If you join our Slack the community can help you get started.

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