langroid 0.1.244__tar.gz → 0.1.245__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.
- {langroid-0.1.244 → langroid-0.1.245}/PKG-INFO +1 -1
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/chat_document.py +10 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_rag/critic_agent.py +4 -0
- {langroid-0.1.244 → langroid-0.1.245}/pyproject.toml +1 -1
- {langroid-0.1.244 → langroid-0.1.245}/LICENSE +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/README.md +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/base.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/batch.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/callbacks/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/callbacks/chainlit.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/chat_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/helpers.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/junk +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_doc_chat_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_rag/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_rag/lance_rag_task.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_rag/query_planner_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_tools.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/neo4j/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/neo4j/csv_kg_chat.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/neo4j/neo4j_chat_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/neo4j/utils/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/neo4j/utils/system_message.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/task.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tool_message.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/duckduckgo_search_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/extract_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/generator_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/metaphor_search_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/run_python_code.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/agent_config.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/cachedb/base.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/cachedb/momento_cachedb.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/base.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/clustering.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/models.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/protoc/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/protoc/embeddings.proto +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/protoc/embeddings_pb2.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/protoc/embeddings_pb2.pyi +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/protoc/embeddings_pb2_grpc.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/remote_embeds.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/base.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/config.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/openai_assistants.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/openai_gpt.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/prompt_formatter/hf_formatter.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/utils.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/mytypes.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/code-parsing.md +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/config.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/image_text.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/parse_json.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/parser.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/search.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/spider.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/url_loader_cookies.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/urls.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/utils.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/parsing/web_search.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/prompts/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/prompts/chat-gpt4-system-prompt.md +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/prompts/dialog.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/prompts/templates.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/prompts/transforms.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/configuration.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/constants.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/docker.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/globals.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/llms/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/llms/strings.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/logging.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/output/printing.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/output/status.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/pandas_utils.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/system.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/web/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/utils/web/login.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/base.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/momento.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/qdrant_cloud.py +0 -0
- {langroid-0.1.244 → langroid-0.1.245}/langroid/vector_store/qdrantdb.py +0 -0
@@ -166,6 +166,16 @@ class ChatDocument(Document):
|
|
166
166
|
message = message.strip()
|
167
167
|
if message in ["''", '""']:
|
168
168
|
message = ""
|
169
|
+
if response.function_call is not None:
|
170
|
+
# Sometimes an OpenAI LLM may generate a function-call
|
171
|
+
# where the `name` is set, as well as `arugments.request` is set.
|
172
|
+
# In this case we override the `name` with the `request` value.
|
173
|
+
fc = response.function_call
|
174
|
+
if fc.arguments is not None:
|
175
|
+
request = fc.arguments.get("request")
|
176
|
+
if request is not None and request != "":
|
177
|
+
fc.name = request
|
178
|
+
fc.arguments.pop("request")
|
169
179
|
return ChatDocument(
|
170
180
|
content=message,
|
171
181
|
function_call=response.function_call,
|
@@ -66,6 +66,10 @@ class QueryPlanCriticConfig(LanceQueryPlanAgentConfig):
|
|
66
66
|
Here is how you must examine the QUERY PLAN + ANSWER:
|
67
67
|
- ALL filtering conditions in the original query must be EXPLICITLY
|
68
68
|
mentioned in the FILTER, and the QUERY field should not be used for filtering.
|
69
|
+
- If the ANSWER contains an ERROR message, then this means that the query
|
70
|
+
plan execution FAILED, and your feedback should say INVALID along
|
71
|
+
with the ERROR message, `suggested_fix` that aims to help the assistant
|
72
|
+
fix the problem (or simply equals "address the the error shown in feedback")
|
69
73
|
- If the ANSWER is in the expected form, then the QUERY PLAN is likely VALID,
|
70
74
|
and your feedback should say VALID, with empty `suggested_fix`.
|
71
75
|
- If the ANSWER is {NO_ANSWER} or of the wrong form,
|
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
|
{langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/lance_rag/query_planner_agent.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
|
{langroid-0.1.244 → langroid-0.1.245}/langroid/agent/special/sql/utils/description_extractors.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
|
{langroid-0.1.244 → langroid-0.1.245}/langroid/embedding_models/protoc/embeddings_pb2_grpc.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
|
{langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/prompt_formatter/hf_formatter.py
RENAMED
File without changes
|
{langroid-0.1.244 → langroid-0.1.245}/langroid/language_models/prompt_formatter/llama2_formatter.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
|
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
|