LightRAG
LightRAG copied to clipboard
instantiate azure openai
Hi everyone,
quick question - in case I would like to use AzureOpenAI, do I need to do anything else beside:
from lightrag.llm.azure_openai import azure_openai_complete, azure_openai_embed
rag = LightRAG(
working_dir=WORKING_DIR,
llm_model_func=azure_openai_complete,
embedding_func=azure_openai_embed,
)
because at the moment, I always get an error that the entity or relationship extraction does not work and I have to check my llm. The LLM is working. If I just call this method and apply a prompt, it will return something.
If I check the assigned functions for LightRAG after running the above code, it keeps the embedding as well as the llm func emtpy.
How to do it properly?
Same question from me. Without Azure openAI support LightRAG is useless for me from a professional perspective
@LarFii would love if we can get here a quick statement! Also note that the azure example is the only one which got not updated but the code did. So please make sure this is aligned!
@LarFii would love if we can get here a quick statement! Also note that the azure example is the only one which got not updated but the code did. So please make sure this is aligned!
The AzureOpenAI-related code is community-contributed, which is why it may not have been updated promptly. We apologize for the inconvenience and plan to address this and provide an update soon. Thank you for your understanding.
Hi @LarFii, Could we get an update on this? We are also trying to use LightRAG from a professional perspective but without this it would be impossible
Any solution? getting error for azure openai.
I tried the Azure example and it worked well. Documents were ingested and at the end the example queries showed good results. But when I try to load the vector-store again in a new script it showed '0 data' for every file and the result of the query is [no-context]. Any progress on this?
Update 28-02-25 I did some investigations and made some modifications to the script. I succeeded to make a database and query this from a separate script using Azure OpenAI. So no error on this anymore from my side.
@stevenveenma are you willing to share the modifications that you made?
@stevenveenma are you willing to share the modifications that you made? Enclosed the scripts I use to ingest and query the data using Azure OpenAI, using a Windows AVD. Not everything might be usefull, but maybe it helps. transfer 2.txt
@stevenveenma Thanks!