Find answers from the community

Updated last year

Embeddings

Hello, is there an updated example on how to implement a custom embedding model? Looks like there are a few new abstract methods implemented in BaseEmbedding that aren't accounted for in the example (https://gpt-index.readthedocs.io/en/latest/examples/embeddings/custom_embeddings.html). Thanks!
L
a
2 comments
Good catch -- no updated example, but I can update that example!

You could also check out the source could from some existing embeddings

https://github.com/jerryjliu/llama_index/blob/main/llama_index/embeddings/langchain.py
Thanks, that source code is a perfect example to work off of.
Add a reply
Sign up and join the conversation on Discord