Skip to content

Commit

Permalink
Merge pull request #944 from julep-ai/f/cozo-indices
Browse files Browse the repository at this point in the history
fix: Remove indices which are not defined for a given set of fields
  • Loading branch information
whiterabbit1983 authored Dec 10, 2024
2 parents 875943c + ba39f2a commit 83487c3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def search_docs_by_embedding(
snippet_counter[count(item)] :=
owners[owner_type, owner_id_str],
owner_id = to_uuid(owner_id_str),
*docs:owner_id_metadata_doc_id_idx {{
*docs {{
owner_type,
owner_id,
doc_id: item,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/docs/search_docs_by_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def search_docs_by_text(
candidate[doc_id] :=
input[owner_type, owner_id],
*docs:owner_id_metadata_doc_id_idx {{
*docs {{
owner_type,
owner_id,
doc_id,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/execution/get_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_execution(
?[id, task_id, status, input, output, error, session_id, metadata, created_at, updated_at] :=
input[execution_id],
*executions:execution_id_status_idx {
*executions {
task_id,
execution_id,
status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_paused_execution_token(
*executions {
execution_id,
},
*transitions:execution_id_type_created_at_idx {
*transitions {
execution_id,
created_at,
task_token,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def list_execution_transitions(

query = f"""
?[id, execution_id, type, current, next, output, metadata, updated_at, created_at] :=
*transitions:execution_id_type_created_at_idx {{
*transitions {{
execution_id,
transition_id: id,
type,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/execution/update_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def update_execution(

validate_status_query = """
valid_status[count(status)] :=
*executions:execution_id_status_idx {
*executions {
status,
execution_id: to_uuid($execution_id),
task_id: to_uuid($task_id),
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/task/get_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_task(
metadata,
] :=
input[task_id],
*tasks:task_id_agent_id_idx {
*tasks {
agent_id,
task_id,
updated_at_ms,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/user/get_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_user(
updated_at,
metadata,
] := input[developer_id, id],
*users:developer_id_metadata_user_id_idx {
*users {
user_id: id,
developer_id,
name,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/user/list_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def list_users(
metadata,
] :=
input[developer_id],
*users:developer_id_metadata_user_id_idx {{
*users {{
user_id: id,
developer_id,
name,
Expand Down

0 comments on commit 83487c3

Please sign in to comment.