contexteval 0.2.0__py3-none-any.whl
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.
- contexteval/__init__.py +19 -0
- contexteval/__main__.py +7 -0
- contexteval/_capture.py +821 -0
- contexteval/_cli.py +477 -0
- contexteval/_diagnose.py +347 -0
- contexteval/_hooks.py +439 -0
- contexteval/_intervention.py +203 -0
- contexteval/_llm.py +248 -0
- contexteval/_runner.py +196 -0
- contexteval/_store.py +489 -0
- contexteval/_testset.py +191 -0
- contexteval/_text.py +124 -0
- contexteval/_ui.py +309 -0
- contexteval/demo/__init__.py +1 -0
- contexteval/demo/_lock.py +39 -0
- contexteval/demo/app.py +169 -0
- contexteval/demo/corpus/company.md +11 -0
- contexteval/demo/corpus/returns.md +11 -0
- contexteval/demo/corpus/shipping.md +13 -0
- contexteval/demo/corpus/warranty.md +15 -0
- contexteval/demo/fake_llm.py +161 -0
- contexteval/demo/planted.py +132 -0
- contexteval/types.py +364 -0
- contexteval/ui.html +433 -0
- contexteval-0.2.0.dist-info/METADATA +307 -0
- contexteval-0.2.0.dist-info/RECORD +30 -0
- contexteval-0.2.0.dist-info/WHEEL +5 -0
- contexteval-0.2.0.dist-info/entry_points.txt +2 -0
- contexteval-0.2.0.dist-info/licenses/LICENSE +21 -0
- contexteval-0.2.0.dist-info/top_level.txt +1 -0
contexteval/__init__.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""contexteval: find out why your RAG agent's context failed.
|
|
2
|
+
|
|
3
|
+
Public surface is deliberately two names for app code plus read-only types:
|
|
4
|
+
|
|
5
|
+
import contexteval
|
|
6
|
+
contexteval.init() # hook chromadb, pinecone, openai, anthropic
|
|
7
|
+
|
|
8
|
+
@contexteval.retriever(top_k="k") # custom retrieval (pgvector, SQL, APIs)
|
|
9
|
+
def search(query: str, k: int = 5) -> list[dict]: ...
|
|
10
|
+
|
|
11
|
+
Everything else is driven by the `contexteval` CLI. Modules other than this one and
|
|
12
|
+
`contexteval.types` are internal; their names may change without notice.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from ._capture import InstallReport, retriever
|
|
16
|
+
from ._hooks import init
|
|
17
|
+
from ._intervention import InterventionNotApplicable
|
|
18
|
+
|
|
19
|
+
__all__ = ["init", "retriever", "InstallReport", "InterventionNotApplicable"]
|