Find answers from the community

Updated 3 months ago

Hey guys

Hey guys,

How can I use Cohere LLMs and Cohere Embeddings? I've upgraded my LLamaIndex to the latest version but I don't seem to find cohere embeddings and even huggingface embeddings in here.
L
d
2 comments
All those are supported by the langchain integrations

Plain Text
from llama_index.embeddings import LangchainEmbedding
from llama_index import ServiceContext, set_global_service_context

llm = <setup langchain llm>
embed_model = LangchainEmbedding(<setup langchain embeds>)

service_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)
set_global_service_context(service_context)
Thanks Logan πŸ˜€
Add a reply
Sign up and join the conversation on Discord