Skip to content

Commit

Permalink
fix: Remove indices as they cause no field error
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Dec 10, 2024
1 parent be71603 commit fe0a6ae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/agent/get_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_agent(*, developer_id: UUID, agent_id: UUID) -> tuple[list[str], dict]:
default_settings,
instructions,
] := input[id],
*agents:developer_id_metadata_agent_id_idx {
*agents {
developer_id: to_uuid($developer_id),
agent_id: id,
model,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/agent/list_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def list_agents(
default_settings,
instructions,
] := input[developer_id],
*agents:developer_id_metadata_agent_id_idx {{
*agents {{
developer_id,
agent_id: id,
model,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/docs/list_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def list_docs(
] :=
owner_type = $owner_type,
owner_id = to_uuid($owner_id),
*docs:owner_id_metadata_doc_id_idx {{
*docs {{
owner_type,
owner_id,
doc_id: id,
Expand Down
4 changes: 2 additions & 2 deletions agents-api/agents_api/models/docs/search_docs_by_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def search_docs_by_embedding(
input[owner_type, owner_id, query],
# Restrict the search to all documents that match the owner
*docs:owner_id_metadata_doc_id_idx {{
*docs {{
owner_type,
owner_id,
doc_id,
Expand Down Expand Up @@ -203,7 +203,7 @@ def search_docs_by_embedding(
input[owner_type, owner_id, query],
# Restrict the search to all documents that match the owner
*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/docs/search_docs_by_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def search_docs_by_text(
metadata,
] :=
candidate[doc_id],
*docs:owner_id_metadata_doc_id_idx {{
*docs {{
owner_type,
owner_id,
doc_id,
Expand Down

0 comments on commit fe0a6ae

Please sign in to comment.