From 50288283281fc0e8c82bec5fb3dd86ae2e99ccad Mon Sep 17 00:00:00 2001 From: ZanSara Date: Mon, 22 Jan 2024 11:41:38 +0100 Subject: [PATCH] Update llama_cpp.md (#141) --- integrations/llama_cpp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/llama_cpp.md b/integrations/llama_cpp.md index 5e1c98e3..e3f4951b 100644 --- a/integrations/llama_cpp.md +++ b/integrations/llama_cpp.md @@ -214,7 +214,7 @@ docs = [ ```python doc_store = InMemoryDocumentStore(embedding_similarity_function="cosine") -doc_embedder = SentenceTransformersDocumentEmbedder(model_name_or_path="sentence-transformers/all-MiniLM-L6-v2") +doc_embedder = SentenceTransformersDocumentEmbedder(model="sentence-transformers/all-MiniLM-L6-v2") # Indexing Pipeline indexing_pipeline = Pipeline() @@ -241,7 +241,7 @@ GPT4 Correct Assistant: rag_pipeline = Pipeline() -text_embedder = SentenceTransformersTextEmbedder(model_name_or_path="sentence-transformers/all-MiniLM-L6-v2") +text_embedder = SentenceTransformersTextEmbedder(model="sentence-transformers/all-MiniLM-L6-v2") # Load the LLM using LlamaCppGenerator model_path = "openchat-3.5-1210.Q3_K_S.gguf"