diff --git a/src/haiku/rag/qa/prompts.py b/src/haiku/rag/qa/prompts.py index d55131be..f865b09f 100644 --- a/src/haiku/rag/qa/prompts.py +++ b/src/haiku/rag/qa/prompts.py @@ -18,6 +18,7 @@ Guidelines: - Stick to the answer, do not ellaborate or provide context unless explicitly asked for it. Be concise, and always maintain accuracy over completeness. Prefer short, direct answers that are well-supported by the documents. +/no_think """ SYSTEM_PROMPT_WITH_CITATIONS = """ @@ -55,4 +56,5 @@ Citations: - /path/to/document2.pdf: "The manual provides guidance on military procedures and..." Be concise, and always maintain accuracy over completeness. Prefer short, direct answers that are well-supported by the documents. +/no_think """ diff --git a/src/haiku/rag/reranking/ollama.py b/src/haiku/rag/reranking/ollama.py index 40e3ad82..9acba3dd 100644 --- a/src/haiku/rag/reranking/ollama.py +++ b/src/haiku/rag/reranking/ollama.py @@ -32,7 +32,9 @@ Return your response as a JSON object with a "results" array. Each result should - "index": the original index of the document (integer) - "relevance_score": a score between 0.0 and 1.0 indicating relevance (float, where 1.0 is most relevant) -Only return the top documents up to the requested limit, ordered by decreasing relevance score.""" +Only return the top documents up to the requested limit, ordered by decreasing relevance score. +/no_think +""" model_obj = OpenAIModel( model_name=model,