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

read_blob function #2683

Closed
universalmind303 opened this issue Feb 22, 2024 · 0 comments · Fixed by #2902
Closed

read_blob function #2683

universalmind303 opened this issue Feb 22, 2024 · 0 comments · Fixed by #2902
Labels
feat New feature or request

Comments

@universalmind303
Copy link
Contributor

universalmind303 commented Feb 22, 2024

Description

duckdb style read_blob function

https://duckdb.org/docs/guides/import/read_file#read_blob

for some additional context, I think you could do some interesting semantic search given this kind of functionality.

An example of using read_blob and semantic search to build a mechanism for searching for files using semantic text

> create table doc_embeddings as (
  SELECT *, openai_embed(content::text) as embedding
  FROM read_blob('**/*.rs')
);

> select cosine_similarity(openai_embed('configuration object for various supported storage types'), embeddings), content;
@universalmind303 universalmind303 added the feat New feature or request label Feb 22, 2024
universalmind303 added a commit that referenced this issue Apr 17, 2024
tychoish pushed a commit that referenced this issue Apr 17, 2024
tychoish pushed a commit that referenced this issue Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant