cortexdbai 0.6.0__tar.gz → 0.7.0__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.
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/PKG-INFO +1 -1
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/__init__.py +1 -1
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/v1/client.py +20 -1
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/pyproject.toml +1 -1
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/.gitignore +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/README.md +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ag2/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ag2/agent.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ag2/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/agno/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/agno/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/agno/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/autogen/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/autogen/agent.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/autogen/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/beeai/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/beeai/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/beeai/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/camel/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/camel/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/camel/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/controlflow/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/controlflow/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/crewai/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/crewai/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/crewai/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/config.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/embeddings.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/openai_compat.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dify/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dify/manifest.yaml +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dify/tool.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dspy/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dspy/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dspy/retriever.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/config.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/embeddings.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/openai_compat.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/flowise/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/flowise/node.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/google_adk/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/google_adk/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/config.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/embeddings.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/openai_compat.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/hermes/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/hermes/provider.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/instructor/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/instructor/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/retriever.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langgraph/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langgraph/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/letta/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/letta/storage.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/llamaindex/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/llamaindex/memory.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/actions.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/knowledge_base.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ollama/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ollama/config.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ollama/embeddings.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/openai_agents/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/openai_agents/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/prefect/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/prefect/blocks.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/prefect/tasks.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/pydanticai/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/pydanticai/dependencies.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/pydanticai/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/smolagents/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/smolagents/tools.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/temporal/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/temporal/activities.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/temporal/interceptor.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/config.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/embeddings.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/openai_compat.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/config.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/embeddings.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/openai_compat.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/py.typed +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/v1/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/v1/exceptions.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/tests/__init__.py +0 -0
- {cortexdbai-0.6.0 → cortexdbai-0.7.0}/tests/test_conflicts.py +0 -0
|
@@ -500,6 +500,8 @@ class V1Client:
|
|
|
500
500
|
question_date: Optional[str] = None,
|
|
501
501
|
answer_model: Optional[str] = None,
|
|
502
502
|
answer_max_tokens: Optional[int] = None,
|
|
503
|
+
answer_instructions: Optional[str] = None,
|
|
504
|
+
cite_sources: bool = False,
|
|
503
505
|
use_pack_id: Optional[str] = None,
|
|
504
506
|
temporal: Optional[Mapping[str, Any]] = None,
|
|
505
507
|
diagnostics: str = "none",
|
|
@@ -510,6 +512,12 @@ class V1Client:
|
|
|
510
512
|
defaults to ``"none"`` so free-tier tokens don't hit the
|
|
511
513
|
``diagnostics.read`` gate. Pass ``"summary"`` or ``"full"`` when
|
|
512
514
|
you hold the elevated capability.
|
|
515
|
+
|
|
516
|
+
``answer_instructions`` is a prompt addendum appended to the server's
|
|
517
|
+
system prompt — control style, verbosity, and output format ("be
|
|
518
|
+
terse", "answer as markdown with curl examples", "respond in JSON").
|
|
519
|
+
It never affects retrieval. Max 4000 chars. Pair with
|
|
520
|
+
``question_type="docs-assistant"`` for documentation-support answers.
|
|
513
521
|
"""
|
|
514
522
|
body: dict = {
|
|
515
523
|
"scope": scope,
|
|
@@ -525,6 +533,10 @@ class V1Client:
|
|
|
525
533
|
body["answer_model"] = answer_model
|
|
526
534
|
if answer_max_tokens is not None:
|
|
527
535
|
body["answer_max_tokens"] = answer_max_tokens
|
|
536
|
+
if answer_instructions:
|
|
537
|
+
body["answer_instructions"] = answer_instructions
|
|
538
|
+
if cite_sources:
|
|
539
|
+
body["cite_sources"] = True
|
|
528
540
|
if use_pack_id:
|
|
529
541
|
body["use_pack_id"] = use_pack_id
|
|
530
542
|
if temporal:
|
|
@@ -1020,11 +1032,14 @@ class AsyncV1Client:
|
|
|
1020
1032
|
*,
|
|
1021
1033
|
question_type: Optional[str] = None,
|
|
1022
1034
|
question_date: Optional[str] = None,
|
|
1035
|
+
answer_instructions: Optional[str] = None,
|
|
1036
|
+
cite_sources: bool = False,
|
|
1023
1037
|
view: str = "holistic",
|
|
1024
1038
|
diagnostics: str = "none",
|
|
1025
1039
|
) -> dict:
|
|
1026
1040
|
"""``POST /v1/answer``. ``diagnostics`` defaults to ``"none"`` so
|
|
1027
|
-
free-tier tokens succeed (audit FRI-1).
|
|
1041
|
+
free-tier tokens succeed (audit FRI-1). ``answer_instructions``:
|
|
1042
|
+
see :meth:`V1Client.answer`."""
|
|
1028
1043
|
body: dict = {
|
|
1029
1044
|
"scope": scope,
|
|
1030
1045
|
"view": view,
|
|
@@ -1035,6 +1050,10 @@ class AsyncV1Client:
|
|
|
1035
1050
|
body["question_type"] = question_type
|
|
1036
1051
|
if question_date:
|
|
1037
1052
|
body["question_date"] = question_date
|
|
1053
|
+
if answer_instructions:
|
|
1054
|
+
body["answer_instructions"] = answer_instructions
|
|
1055
|
+
if cite_sources:
|
|
1056
|
+
body["cite_sources"] = True
|
|
1038
1057
|
return await self._post("/v1/answer", body)
|
|
1039
1058
|
|
|
1040
1059
|
# ── conflicts + bi-temporal claims ────────────────────────────────
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/knowledge_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|