Skip to content

Commit 0415a2d

Browse files
fixed wrong variable names in starter guide using azure openai (#1641)
found this small error while trying to use ragas following the starter guide using azure openai previously set azure_config should be referenced instead of azure_configs (which doesn't exist)
1 parent 895f9c0 commit 0415a2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/extra/components/choose_evaluator_llm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,18 @@
100100
from ragas.embeddings import LangchainEmbeddingsWrapper
101101
evaluator_llm = LangchainLLMWrapper(AzureChatOpenAI(
102102
openai_api_version="2023-05-15",
103-
azure_endpoint=azure_configs["base_url"],
104-
azure_deployment=azure_configs["model_deployment"],
105-
model=azure_configs["model_name"],
103+
azure_endpoint=azure_config["base_url"],
104+
azure_deployment=azure_config["model_deployment"],
105+
model=azure_config["model_name"],
106106
validate_base_url=False,
107107
))
108108

109109
# init the embeddings for answer_relevancy, answer_correctness and answer_similarity
110110
evaluator_embeddings = LangchainEmbeddingsWrapper(AzureOpenAIEmbeddings(
111111
openai_api_version="2023-05-15",
112-
azure_endpoint=azure_configs["base_url"],
113-
azure_deployment=azure_configs["embedding_deployment"],
114-
model=azure_configs["embedding_name"],
112+
azure_endpoint=azure_config["base_url"],
113+
azure_deployment=azure_config["embedding_deployment"],
114+
model=azure_config["embedding_name"],
115115
))
116116
```
117117

0 commit comments

Comments
 (0)