Replies: 2 comments 4 replies
-
Hello @ali-issa9! I am not an expert on biological Language models, but I'll try to give you some advice... In Haystack, the retriever is a node that, given a query as input, returns the most relevant/nearest documents. Retrievers can be sparse or dense. Not all Language Model can be used in a dense retriever. We need a Language Model that can produce good vector representations of documents, such as models from the family of Sentence Transformers. In contrast, BioGPT is a generative model: given a prompt, it can generate more coherent text. What are you trying to achieve/build? |
Beta Was this translation helpful? Give feedback.
-
Now I'm understanding better your problem...
from haystack.document_stores import InMemoryDocumentStore
from haystack.nodes import EmbeddingRetriever
document_store = InMemoryDocumentStore(
embedding_dim=42384
)
retriever = EmbeddingRetriever(
document_store=document_store,
embedding_model="microsoft/biogpt",
model_format="transformers"
) gives a
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, i would like to know how we can add the biogpt model as a retirver inside haystack? does anyone have an idea?
thank you
Beta Was this translation helpful? Give feedback.
All reactions