From f902f552da36d91d3a7c12faaa902b6fc2e354c7 Mon Sep 17 00:00:00 2001 From: zrguo <49157727+LarFii@users.noreply.github.com> Date: Tue, 11 Feb 2025 22:06:40 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf1d86aa..62f21a65 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Use the below Python snippet (in a script) to initialize LightRAG and perform qu ```python import os from lightrag import LightRAG, QueryParam -from lightrag.llm.openai import gpt_4o_mini_complete, gpt_4o_complete +from lightrag.llm.openai import gpt_4o_mini_complete, gpt_4o_complete, openai_embed ######### # Uncomment the below two lines if running in a jupyter notebook to handle the async nature of rag.insert() @@ -95,12 +95,12 @@ from lightrag.llm.openai import gpt_4o_mini_complete, gpt_4o_complete WORKING_DIR = "./dickens" - if not os.path.exists(WORKING_DIR): os.mkdir(WORKING_DIR) rag = LightRAG( working_dir=WORKING_DIR, + embedding_func=openai_embed, llm_model_func=gpt_4o_mini_complete # Use gpt_4o_mini_complete LLM model # llm_model_func=gpt_4o_complete # Optionally, use a stronger model )