Find answers from the community

Updated 2 years ago

Hello everyone I m wondering if someone

Hello everyone, I'm wondering if someone could clarify whether we need an OpenAI key to convert a PDF file to a vector file?
W
1 comment
No, you can use open source embedding also

Plain Text
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
from llama_index import ServiceContext

embed_model = LangchainEmbedding(HuggingFaceEmbeddings())

service_context = ServiceContext.from_defaults(embed_model=embed_model)
Add a reply
Sign up and join the conversation on Discord