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

Make embeddings asynchronous using temporal #332

Merged
merged 3 commits into from
May 16, 2024

Conversation

whiterabbit1983
Copy link
Contributor

@whiterabbit1983 whiterabbit1983 commented May 15, 2024

🚀 This description was created by Ellipsis for commit 8cc62d4

Summary:

This PR integrates asynchronous document embedding using Temporal workflows, enhancing performance, scalability, and adding necessary activities, workflows, and client updates.

Key points:

  • Added embed_docs.py activity for asynchronous document embedding.
  • Introduced EmbedDocsWorkflow in agents-api/agents_api/workflows/embed_docs.py to manage embedding tasks.
  • Updated routers and client utilities to support new embedding tasks using Temporal.
  • Set a 10-minute timeout for embedding tasks in EmbedDocsWorkflow.
  • Minor adjustments in unrelated files like proc_mem_context.py.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

sweep-ai bot commented May 15, 2024

Sweep: PR Review

Sweep is currently reviewing your pr...

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 72a8689 in 1 minute and 13 seconds

More details
  • Looked at 368 lines of code in 7 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_5qkRljEnYAhSIlQ0


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

agents-api/agents_api/workflows/embed_docs.py Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 8cc62d4 in 2 minutes and 19 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. agents-api/agents_api/workflows/embed_docs.py:7
  • Draft comment:
    Using workflow.unsafe.imports_passed_through() can introduce security risks or unexpected behavior. Ensure this is necessary and consider implementing safeguards if this approach must be used.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_GQqg872RIBzWEsk9


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@whiterabbit1983 whiterabbit1983 merged commit 284da20 into dev May 16, 2024
11 checks passed
@whiterabbit1983 whiterabbit1983 deleted the f/embeddings-to-temporal branch May 16, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant