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

feat: add default prompts #312

Merged
merged 3 commits into from
Jun 28, 2024
Merged

feat: add default prompts #312

merged 3 commits into from
Jun 28, 2024

Conversation

OlivierDehaene
Copy link
Member

Close #244

@OlivierDehaene OlivierDehaene merged commit 0361479 into main Jun 28, 2024
4 checks passed
@OlivierDehaene OlivierDehaene deleted the feat/prompt_name branch June 28, 2024 10:07
Wauplin added a commit to huggingface/huggingface.js that referenced this pull request Jul 12, 2024
This PR adds a script to import `feature-extraction` inference types
from
[text-embeddings-inference](https://github.com/huggingface/text-embeddings-inference).
The jsonschema is pulled from
https://huggingface.github.io/text-embeddings-inference/openapi.json and
converted into the JSONSchema format from which we generate types from
the JS and Python clients. This script is highly inspired on the TGI
importer script.

This PR also add `prompt_name` input parameter that has been newly added
to TEI (see
huggingface/text-embeddings-inference#312).

Decisions taken:
1. Keep `string` as input. In theory TEI is capable of handling much
more complex inputs (`Union[List[Union[List[int], int, str]], str]`) but
let's keep it simple for now. Other inference tasks are also currently
defined without arrays even when InferenceAPI/Endpoints is capable of
it.
2. I only take input/output types for the `/embed` route, which is the
closest one to `feature-extraction` task.


**Note:** in a follow-up PR it would be really nice to put this in a CI
workflow that could be triggered manually to open a PR when new
arguments are added to TGI / TEI.
MasakiMu319 pushed a commit to MasakiMu319/text-embeddings-inference that referenced this pull request Nov 27, 2024
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.

Support for config_sentence_transformers.json
1 participant