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

Added a tool to run KNN searches based on keyword or article IDs #306

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

tfnribeiro
Copy link
Collaborator

  • Added support to embed a string to run KNN searches in the ElasticSearch
  • Added a script to show the results of running a kNN search either based on an article id or a keyword / phrase.

Isolated, searching simply for a keyword might not be the most effective way to articles. We would likely obtain better results by running a normal search, and then re-order elements based on the embeddings. The longer the sentence, the better the matches are to the query.

- Fixed an issue when running the MoreLikeThisQuery
- Added a method to query the semantic_embedding API with a string.
- run_knn_topic_inferance -> run_knn_similarity_search, to better reflect the purpose of the script.
- Improved printing format
@tfnribeiro tfnribeiro linked an issue Nov 25, 2024 that may be closed by this pull request
@mircealungu mircealungu merged commit 7f9cad5 into master Nov 26, 2024
2 of 3 checks passed
@mircealungu mircealungu deleted the 275-add-a-way-to-run-semantic-search-on-text branch November 26, 2024 11:07
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.

Add a way to run semantic search on Text
2 participants