Skip to content

Commit 535c97c

Browse files
committed
Fix embeddings smoke test
1 parent c21fbe0 commit 535c97c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/verbs/test_generate_text_embeddings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
all_embeddings,
88
)
99
from graphrag.config.enums import LLMType, TextEmbeddingTarget
10+
from graphrag.index.operations.embed_text.embed_text import TextEmbedStrategyType
1011
from graphrag.index.workflows.generate_text_embeddings import (
1112
run_workflow,
1213
)
@@ -36,6 +37,7 @@ async def test_generate_text_embeddings():
3637
llm_settings["type"] = LLMType.MockEmbedding
3738

3839
config.embed_text.strategy = {
40+
"type": TextEmbedStrategyType.openai,
3941
"llm": llm_settings,
4042
}
4143
config.embed_text.target = TextEmbeddingTarget.all

0 commit comments

Comments
 (0)