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.
@@ -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"]
@@ -0,0 +1,7 @@
1
+ """`python -m contexteval` is the same entry point as the `contexteval` console script."""
2
+
3
+ import sys
4
+
5
+ from ._cli import main
6
+
7
+ sys.exit(main())