[WIP] Add support for OPEA LLMs in Llama-Index#16666
Conversation
|
thanks for this PR. I am one of contributors in OPEA. I have a comment here: such code should have an assumption that the OPEA microservice has been deployed in somewhere, either in local or in a cloud env. Then user could pass down the service ip to access. I would suggest to have words in document to mention this prerequisite. |
llama-index-integrations/embeddings/llama-index-embeddings-opea/README.md
Show resolved
Hide resolved
|
Thanks @logan-markewich! I tested your PR with OPEA microservices. No issues with llm but there is an issue w embeddings. If you want to try yourself you can launch the opea microservice following one of the options of this README: https://github.com/opea-project/GenAIComps/tree/main/comps/embeddings/tei/llama_index Here are some checks after launching OPEA embedding microservice: test with TextDoc input test with EmbeddingRequest input Input in embeddingRequest is String Using your code: Input of embeddingRequest is converting the string to a list To make it work I had to remove the square brackets in the openai get_embedding function: Please have a check! |
|
Thanks for testing @rbrugaro -- taking a look |
|
@rbrugaro it seems like the OPEA embeddings are not fully openai-compatible? Only being able to embed a single piece of text at a time is probably not ideal 😅 -- I think I raised a slightly related issue in the opea repo (mentioned above) |
|
@logan-markewich I have tested with OPEA embedding microservice form here and all the issues brought up earlier have been resolved on the OPEA side. Could you please merge if it looks good on your side? |
Description
This PR adds a llama-index wrapper for LLMs hosted by OPEA's GenAIComps library
A few unknowns/notes from my part
New Package?
Did I fill in the
tool.llamahubsection in thepyproject.tomland provide a detailed README.md for my new integration or package?Version Bump?
Did I bump the version in the
pyproject.tomlfile of the package I am updating? (Except for thellama-index-corepackage)Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.