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

Integrate semantic search with OpenAI embedings API #21

Closed
umaar opened this issue May 25, 2023 · 3 comments
Closed

Integrate semantic search with OpenAI embedings API #21

umaar opened this issue May 25, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@umaar
Copy link

umaar commented May 25, 2023

Is the search a traditional exact text match? If so, having semantic searching via embeddings/completion would be great!

@NotJoeMartinez NotJoeMartinez added the enhancement New feature or request label May 27, 2023
@NotJoeMartinez
Copy link
Owner

NotJoeMartinez commented May 29, 2023

The current implementation uses the SQLite LIKE keyword, meaning an exact match isn't necessary, but it is still somewhat limited. I plan to implement true full-text search with sqlite-utils, which should enhance query speed and introduce more flexibility for features like relevancy ranking. #24

Several users brought up the idea of semantic search on the HN thread, and it's an area I'm interested in exploring. I don't have much experience with vector search databases, but my rough plan is the following:

  • Using the OpenAI Python library to authenticate users with their API key.
  • Adding a command to generate embeddings from one of their models.
  • Somehow creating a searchable vector database with the embeddings data, possibly using the openai-to-sqlite library.

As I mentioned, I'm not very familiar with this area, so any suggestions are highly appreciated. Thank you!

@umaar
Copy link
Author

umaar commented May 29, 2023

Sounds excellent, thank you for this!

@NotJoeMartinez NotJoeMartinez changed the title Question: semantic search? Integrate semantic search with OpenAI embedings API Jun 1, 2023
This was referenced Jun 1, 2023
@NotJoeMartinez
Copy link
Owner

@umaar Added experimental integration with semantic search via OpenAI embeddings on #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants