-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix(embeddings): modified embeddings utils to only index english docs #2078
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR restricts embeddings processing to English documentation only, removing multi-language support. The default docs path is changed from Key Changes:
Issues Found:
Confidence Score: 3/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant GH as GitHub (main branch)
participant CI as CI Workflow
participant Filter as Path Filter
participant Embed as Docs Embeddings Job
participant Script as process-docs.ts
participant DB as Database
Dev->>GH: Push to main branch
GH->>CI: Trigger CI workflow
CI->>CI: Run tests & build AMD64 images
par Check for docs changes
CI->>Filter: Check if docs changed
Filter->>Filter: Check paths:<br/>- apps/docs/content/docs/en/**<br/>- process-docs.ts<br/>- chunkers/**
Filter-->>CI: docs_changed = true/false
end
alt docs_changed == true
CI->>Embed: Trigger docs-embeddings workflow
Embed->>Script: Run process-docs.ts --clear
Script->>Script: Read from docs/en only
Script->>Script: Generate embeddings for English docs
Script->>DB: Clear existing embeddings
Script->>DB: Insert new English-only embeddings
DB-->>Embed: Success
else docs_changed == false
CI->>CI: Skip docs processing
end
|
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.
1 file reviewed, 1 comment
a577c49 to
8efbc60
Compare
|
@greptile |
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.
3 files reviewed, 1 comment
8efbc60 to
76fa272
Compare
Summary
Type of Change
Testing
Tested manually
Checklist