Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: IndexError in mmr logic #908

Open
1 task done
creatorrr opened this issue Nov 29, 2024 · 0 comments
Open
1 task done

[Bug]: IndexError in mmr logic #908

creatorrr opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@creatorrr
Copy link
Contributor

📜 Description

\"<@beartype(agents_api.activities.execute_system.execute_system) at 0x7d41e8759ee0>\", line 52, in execute_system\n\n  File \"/app/agents_api/activities/execute_system.py\", line 88, in execute_system\n    return await handler(search_params=search_params, **arguments)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n  File \"/app/agents_api/routers/docs/search_docs.py\", line 162, in search_agent_docs\n    indices = maximal_marginal_relevance(\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n  File \"/app/agents_api/models/docs/mmr.py\", line 96, in maximal_marginal_relevance\n    similarity_to_selected = _cosine_similarity(embedding_list, selected)\n                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n  File \"/app/agents_api/models/docs/mmr.py\", line 37, in _cosine_similarity\n    if x.shape[1] != y.shape[1]:\n                     ~~~~~~~^^^\n",
              "applicationFailureInfo": {
                "type": "IndexError"
              }

👟 Reproduction steps

No response

👀 Have you searched previous issues to see if this has been raised before?

  • I checked and didn't find similar issue
@creatorrr creatorrr added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants