8000 Pgvector support by itsderek23 · Pull Request #8 · patterns-ai-core/langchainrb_rails · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pgvector support #8

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

Closed
wants to merge 8 commits into from
Closed

Conversation

itsderek23
Copy link
Contributor

DO NOT MERGE - WIP

This adds a pgvector generator along with the following modifications:

  1. A basic #embed! method to generate embeddings
  2. Changes #ask method signature, dropping the named param question to shorten usage.
  3. #ask returns the completion vs an Langchain::LLM::OpenAIResponse object.

Rather than modifying the langchainrb repo directly, I've put the the pgvector overrides in this repo for now so everything is in one place during development.

@itsderek23 itsderek23 marked this pull request as draft October 31, 2023 13:37
@itsderek23 itsderek23 changed the title [WIP] Pgvector support Pgvector support Oct 31, 2023
@andreibondarev andreibondarev self-requested a review October 31, 2023 13:55
@andreibondarev
Copy link
Collaborator

Accidentally created a duplicate pgvector branch on origin. Merging that PR and closing this one.

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 .embed! method to retroactively generate and save embedding for all records
3 participants
0