-
Notifications
You must be signed in to change notification settings - Fork 1
feat: parameterize embedding service port and update configuration do… #4
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,17 @@ curl -X POST http://localhost:3000/embed \ | |
| -d '{"texts":["hello world","another piece of text"]}' | ||
| ``` | ||
|
|
||
| ## Configuration | ||
|
|
||
| Configured via environment variables (set them in `.env`): | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The table documents the default as Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| | Variable | Default | Description | | ||
| | --- | --- | --- | | ||
| | `EMBEDDING_PORT` | `3000` | Port the service listens on. | | ||
| | `EMBEDDING_MODELS` | `nomic` | Comma-separated list of models to load. | | ||
| | `EMBEDDING_CACHE_DIR` | _(default cache)_ | Directory for downloaded model files. | | ||
| | `EMBEDDING_POOL_SIZE` | _(memory-derived)_ | Number of model instances per pool. | | ||
|
|
||
| ## API | ||
|
|
||
| ### `POST /embed` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.