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

Extract and process code snippets from user input #492

Closed
ptelang opened this issue Jan 6, 2025 · 0 comments · Fixed by #493
Closed

Extract and process code snippets from user input #492

ptelang opened this issue Jan 6, 2025 · 0 comments · Fixed by #493

Comments

@ptelang
Copy link
Contributor

ptelang commented Jan 6, 2025

In addition to natural language text, a user query can contain code snippets. Currently, codegate computes vector embeddings for the entire user query including the code snippets. This can lead to poor similarity search results.

So codegate should be modified to extract the code snippets from the user query. Bad packages if any should be extracted from the code snippets using tree-sitter (similar to the output code snippets). The natural text portion of the user query should be embedded and used for similarity search.

Related to #475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant