Skip to content

Commit

Permalink
fix: Fix doc listing query
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed May 23, 2024
1 parent 8a1053a commit 3a6bbd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions agents-api/agents_api/models/docs/list_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ def list_docs_snippets_by_owner_query(
created_at,
metadata,
}},
{metadata_filter_str}
*information_snippets {{
doc_id,
snippet_idx,
title,
snippet,
}}
}},
{metadata_filter_str}
}}"""

return (query, {"owner_id": owner_id})
1 change: 1 addition & 0 deletions agents-api/agents_api/routers/agents/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ async def list_docs(
id=row["doc_id"],
title=row["title"],
content=row["snippet"],
metadata=row.get("metadata")
)
for _, row in resp.iterrows()
]
Expand Down

0 comments on commit 3a6bbd2

Please sign in to comment.