Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mvt/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ system_prompt: "You are an assistant for question-answering tasks that are relat
use_query_rewriting: false # Set to true to enable query rewriting
query_rewriting_prompt: "You are an assistant helping to rewrite user queries to make them more specific and effective for searching documents. The context is the Linux Foundation Decentralized Trust former Hyperledger. Please rewrite the human query to be more specific, detailed, and optimized for document retrieval, considering the context mentioned."
logo_pth: "https://upload.wikimedia.org/wikipedia/en/thumb/e/e2/The_Founder_Institute_Logo.png/250px-The_Founder_Institute_Logo.png"
k: 5
2 changes: 1 addition & 1 deletion src/mvt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_ragchain(filter):
docsearch = FAISS.load_local(config_data["persist_directory"], embeddings, allow_dangerous_deserialization=True)

# Define a retriever interface
retriever = docsearch.as_retriever(search_kwargs={"k": 5, "filter": filter})
retriever = docsearch.as_retriever(search_kwargs={"k": config_data["k"], "filter": filter})

# read prompt string from config file
prompt_str = config_data["system_prompt"]
Expand Down
Loading