Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Offline embedding #2

Closed
hajsf opened this issue Jun 16, 2023 · 2 comments
Closed

Offline embedding #2

hajsf opened this issue Jun 16, 2023 · 2 comments

Comments

@hajsf
Copy link

hajsf commented Jun 16, 2023

Hi,
Can U use other methods for embedding than open AI, something offline, so that I do offline enriching for my local pdf files? Thanks

@Stevenic
Copy link
Owner

You can use any embeddings you want. I haven't explored offline embeddings so not sure what libraries might be out there.

@Stevenic
Copy link
Owner

Stevenic commented Jun 20, 2023

Looks like you might be able to user TensorFlow.js to generate your embeddings offline:

https://github.com/tensorflow/tfjs

Here's some example code from LangChain.js to generate embeddings using TensorFlow:

https://github.com/hwchase17/langchainjs/blob/main/langchain/src/embeddings/tensorflow.ts

Here's a video that might help as well:

https://www.youtube.com/watch?v=MdPYT-xCj9w

You'll need this package as well:

https://www.npmjs.com/package/@tensorflow-models/universal-sentence-encoder

Repository owner locked and limited conversation to collaborators Sep 18, 2023
@Stevenic Stevenic converted this issue into discussion #18 Sep 18, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants