-
Notifications
You must be signed in to change notification settings - Fork 895
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
Fix docs search #311
Fix docs search #311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 250fc30 in 1 minute and 31 seconds
More details
- Looked at
66
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
3
additional comments because they didn't meet confidence threshold of50%
.
1. agents-api/agents_api/models/entry/proc_mem_context.py:32
:
- Assessed confidence :
100%
- Grade:
0%
- Comment:
The change in VECTOR_SIZE from 768 to 1024 needs to be reflected in all embedding generation and usage processes. Ensure that all related functions and processes are updated accordingly to handle the new embedding size. - Reasoning:
The change in VECTOR_SIZE from 768 to 1024 in proc_mem_context.py is significant as it affects the assertion that checks the length of embeddings. This change should be reflected in all places where embeddings are generated or used to ensure consistency. It's important to verify if the embedding generation process and any other related processes or functions are updated to produce or handle embeddings of size 1024 instead of the previous 768.
2. agents-api/agents_api/routers/agents/routers.py:250
:
- Assessed confidence :
100%
- Grade:
0%
- Comment:
Ensure that the transformation ofcontent
handles all edge cases correctly, especially when dealing with different types of content. Consider adding more robust error handling and validation to prevent issues. - Reasoning:
The transformation of the content in the create_agent function in routers.py is complex and may introduce bugs or unexpected behavior. The transformation checks if the content is a string and wraps it in a list, or uses it as is if it's already a list. Then, it checks if each item is an instance of ContentItem and calls model_dump on it. This could lead to issues if the content is not properly formatted or if the model_dump method does not behave as expected. It's important to ensure that the content transformation is robust and handles all edge cases correctly.
3. agents-api/agents_api/routers/sessions/session.py:208
:
- Assessed confidence :
100%
- Grade:
0%
- Comment:
Verify that theembedding_service_url
andembedding_model_name
are correctly configured and that the embedding service is fully operational and capable of handling the embedding requests as expected. - Reasoning:
The addition ofembedding_service_url
andembedding_model_name
in the forward function in session.py is a significant change that affects how embeddings are generated. It's crucial to ensure that these new environment variables are properly configured and that the embedding service is capable of handling the requests correctly. This change could potentially introduce issues if the service URL or model ID are incorrect or if the service does not respond as expected.
Workflow ID: wflow_ZsxSPwQV0CgeZv0s
You can customize Ellipsis with review rules, user-specific overrides, quiet
mode, and more. See docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on 79eeeb6 in 1 minute and 20 seconds
More details
- Looked at
145
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
0
additional comments because they didn't meet confidence threshold of50%
.
Workflow ID: wflow_fz9W9fDO3Y4HgeI0
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with review rules, user-specific overrides, quiet
mode, and more. See docs.
@@ -185,7 +185,7 @@ def _(): | |||
result = proc_mem_context_query( | |||
session_id=session_id, | |||
tool_query_embedding=[0.9] * 768, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tool_query_embedding
size should be updated to 1024 to match the new VECTOR_SIZE
defined in proc_mem_context.py
.
tool_query_embedding=[0.9] * 768, | |
tool_query_embedding=[0.9] * 1024, |
for function in functions | ||
] | ||
) | ||
# embeddings = await embed( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The embedding functionality is commented out here and in several other places. If embedding is supposed to be integrated as per the PR description, these should be enabled or correctly implemented. Please review and ensure the embedding integration is complete.
ea13b7d
to
6d8caba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on 6d8caba in 1 minute and 36 seconds
More details
- Looked at
153
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
additional comments because they didn't meet confidence threshold of50%
.
1. agents-api/agents_api/routers/agents/routers.py:265
:
- Assessed confidence :
100%
- Grade:
0%
- Comment:
The embedding code is commented out and replaced with a placeholder embedding of zeros. This might be for testing, but if it's meant to be final, it should be reconsidered or properly implemented as per the PR description about integrating embedding services.
embeddings = await embed(
[
function_embed_instruction
+ f"{function.name}, {function.description}, "
+ "required_params:"
+ function.parameters.model_dump_json()
for function in functions
]
)
create_tools_query(
new_agent_id,
functions,
embeddings,
)
- Reasoning:
The PR description mentions integrating embedding service URL and model ID in the forward function in session.py, but there are no changes related to this in the provided diffs. It's possible that the changes are not included in the diff or the description might be incorrect. This needs to be verified for consistency and correctness of the PR description.
Workflow ID: wflow_9h5kZmaR0dmVM5mz
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with review rules, user-specific overrides, quiet
mode, and more. See docs.
@@ -185,7 +185,7 @@ def _(): | |||
result = proc_mem_context_query( | |||
session_id=session_id, | |||
tool_query_embedding=[0.9] * 768, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tool_query_embedding
size should be updated to 1024 to match the new VECTOR_SIZE
in proc_mem_context.py
.
tool_query_embedding=[0.9] * 768, | |
tool_query_embedding=[0.9] * 1024, |
create_tools_query( | ||
new_agent_id, | ||
functions, | ||
embeddings, | ||
[[0.0] * 768], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 1024 or no? Just heads up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 3545c1c in 1 minute and 5 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
additional comments because they didn't meet confidence threshold of50%
.
1. agents-api/agents_api/models/entry/proc_mem_context.py:131
:
- Assessed confidence :
66%
- Grade:
0%
- Comment:
Ensure that the commented-out code for the embedding space search for tools is intentionally disabled and correctly handled elsewhere as per the PR's intent to shift to static embeddings. Verify that the commenting syntax used ('#') is appropriate for the context or query language. - Reasoning:
The commented-out code in the diff seems to be disabling the embedding space search for tools, which might be intentional as per the PR description about shifting to static embeddings. However, it's important to ensure that the functionality is correctly replaced or handled elsewhere if needed. The comment character '#' is used to comment out the lines, which is not typical for Python and might be specific to the internal DSL or query language used here. It's crucial to verify that this change aligns with the intended functionality and doesn't inadvertently disable necessary features.
Workflow ID: wflow_dgXpwzJ19ln4BUcE
You can customize Ellipsis with review rules, user-specific overrides, quiet
mode, and more. See docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 4e9799f in 1 minute and 5 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
additional comments because they didn't meet confidence threshold of50%
.
1. model-serving/model_api/protocol.py:96
:
- Assessed confidence :
66%
- Grade:
0%
- Comment:
Making theid
field optional in theTool
class could potentially lead to issues with tool identification and management if other parts of the system expect every tool to have a non-null ID. Please ensure that all parts of the system that interact with theTool
class can handle aNone
value for theid
field. - Reasoning:
The change in the Tool class to make the 'id' field optional (str | None = None) might have implications on how tools are identified and managed. If the 'id' is used as a unique identifier in other parts of the system, making it optional could lead to issues where tools are not correctly identified or handled. It's important to ensure that all parts of the system that interact with the Tool class can handle a None value for the 'id'. This change should be carefully reviewed to ensure it does not introduce bugs or inconsistencies in tool management.
Workflow ID: wflow_c5NsCl0cETj3Smpu
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Summary:
Enhanced document search capabilities by updating embedding vector sizes, refining content handling, integrating embedding services, and shifting to static embeddings.
Key points:
VECTOR_SIZE
inproc_mem_context.py
from 768 to 1024.create_agent
function inrouters.py
to supportContentItem
instances.forward
function insession.py
.create_agent
andcreate_tool
functions inrouters.py
, using static embeddings instead.id
field optional inTool
class inprotocol.py
.Generated with ❤️ by ellipsis.dev