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

Can't specify embedding model via API? #632

Open
scpedicini opened this issue Jan 7, 2024 · 1 comment
Open

Can't specify embedding model via API? #632

scpedicini opened this issue Jan 7, 2024 · 1 comment

Comments

@scpedicini
Copy link

I've setup a txtai with the following configuration.

# config.yml
writable: true

embeddings:
  content: true
  defaults: false

  indexes:
    minilm:
      path: "sentence-transformers/all-MiniLM-L6-v2"
    
    nli:
      path: "sentence-transformers/nli-mpnet-base-v2"

I'm trying to get the vec embeddings of a given document using the API but cannot figure out how to specify the desired model, e.g.

curl -X GET "http://localhost:8000/transform?text=hello&index=nli"
@davidmezzetti
Copy link
Member

Thank you for the write up on this.

Currently, the Embeddings instance doesn't have support for specifying the target index to use for the transform function. This would be a straightforward change and we can leave this issue open to add it in.

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

No branches or pull requests

2 participants