opensolr-haystack 0.2.6__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/PKG-INFO +1 -1
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/haystack_integrations/document_stores/opensolr/client.py +11 -14
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/PKG-INFO +1 -1
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/pyproject.toml +1 -1
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/LICENSE +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/README.md +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/haystack_integrations/components/retrievers/opensolr/__init__.py +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/haystack_integrations/components/retrievers/opensolr/retriever.py +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/haystack_integrations/document_stores/opensolr/__init__.py +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/haystack_integrations/document_stores/opensolr/store.py +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/SOURCES.txt +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/dependency_links.txt +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/requires.txt +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/top_level.txt +0 -0
- {opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opensolr-haystack
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Haystack integration for Opensolr — managed Apache Solr DocumentStore with server-side embeddings and hybrid BM25+kNN retrieval
|
|
5
5
|
Author-email: Opensolr <support@opensolr.com>
|
|
6
6
|
License: MIT
|
|
@@ -49,20 +49,17 @@ BATCH_EMBED_MAX = 50
|
|
|
49
49
|
# rules make it lead with the answer and keep the concrete details. Callers
|
|
50
50
|
# can still override everything by passing ``instruction``.
|
|
51
51
|
DEFAULT_RAG_INSTRUCTION = (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"and
|
|
62
|
-
"
|
|
63
|
-
"related rather than the exact wording used, explain what it does say and how it relates. "
|
|
64
|
-
"Only if nothing in the context is relevant at all, say so in one sentence and name what "
|
|
65
|
-
"the context is about instead."
|
|
52
|
+
# Consolidated 2026-08-26. The rule list had grown to eight overlapping lines and the
|
|
53
|
+
# 3B model drowned in them: it restated the question, opened with a preamble, and
|
|
54
|
+
# presented items as fit for purposes the context never stated. Tested against the
|
|
55
|
+
# live model on three cases (answer present, answer absent, yes/no) before shipping.
|
|
56
|
+
"Answer the question using only the context below.\n"
|
|
57
|
+
"Begin with the answer itself, the specific fact, product or detail. "
|
|
58
|
+
"No preamble, no restating the question, no heading.\n"
|
|
59
|
+
"Then give the concrete supporting details from the context: names, numbers, sizes, dates. "
|
|
60
|
+
"Write two to four sentences.\n"
|
|
61
|
+
"If the context holds no answer, say that in the first sentence and name what it does contain instead.\n"
|
|
62
|
+
"Never present something as suitable for a purpose the context does not state."
|
|
66
63
|
)
|
|
67
64
|
|
|
68
65
|
class OpensolrError(RuntimeError):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opensolr-haystack
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Haystack integration for Opensolr — managed Apache Solr DocumentStore with server-side embeddings and hybrid BM25+kNN retrieval
|
|
5
5
|
Author-email: Opensolr <support@opensolr.com>
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "opensolr-haystack"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.7"
|
|
8
8
|
description = "Haystack integration for Opensolr — managed Apache Solr DocumentStore with server-side embeddings and hybrid BM25+kNN retrieval"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{opensolr_haystack-0.2.6 → opensolr_haystack-0.2.7}/opensolr_haystack.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|