HKUDS / LightRAG

"LightRAG: Simple and Fast Retrieval-Augmented Generation"
https://arxiv.org/abs/2410.05779
MIT License
9.26k stars 1.14k forks source link

azure openai embeddings issue #229

Closed anguy044 closed 2 weeks ago

anguy044 commented 2 weeks ago

Trying out the Lightrag_azure_openai_demp.py and I got mostly everything working. I have access to azure openai's text-embedding-3-small and text-embedding-3-large models.

When it gets to the code with the embeddings model, I keep running into this issue:

OperationNotSupported","message":"The chatCompletion operation does not work with the specified model, text-embedding-3-small

which seems like the chatCompletion functionality does not work with embeddings model? Anyone happen to run into this issue or had to use a different azure model for the embeddings section?

Another try I did was changed the model in the embeddings section to a gpt4 model instead to see what happens. It gets stuck with this error during the testing function and when trying to insert a book txt file. ValueError: Request failed with status 400: Unsupported data type

So would anyone happen to have any success with getting this script to run, and if so, what kind of model did you use in the embeddings section? Maybe I'm supposed to be using a different azure openai model?

Thank you.

anguy044 commented 2 weeks ago

Turns out I just had the endpoint link incorrect. That was on me.