Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added docs about trust remote code and huggingface authentication#1665

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SilasMarvin merged 1 commit intomasterfromsilas/korvus-docs
Jan 14, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -162,3 +162,48 @@ pipeline = Pipeline(
The `Pipeline` above generates embeddings and tsvectors for the `abstract` and splits and generates embeddings and tsvectors for the `text`.

We can now perform search over both the `text` and `abstract` key of our documents. See the [guide for vector search](vector-search) for more information on how to do this.

## Self-Hosting Specific Parameters

**This section is only relevant for self hosted instances of PostgresML**. These parameters are never required for instances hosted by PostgresML.

### Trust Remote Code

Some HuggingFace models require the argument `trust_remote_code=true`. To enable this, pass it as a parameter in the pipeline construction:

```python
pipeline = Pipeline(
"v0",
{
"text": {
"semantic_search": {
"model": "Alibaba-NLP/gte-base-en-v1.5",
"parameters": {
"trust_remote_code": True
}
}
}
}
)
```

### HuggingFace authentication

Pass your HuggingFace token into the pipeline to access gated repos:

```python
pipeline = Pipeline(
"v0",
{
"text": {
"semantic_search": {
"model": "Alibaba-NLP/gte-base-en-v1.5",
"parameters": {
"trust_remote_code": True,
"token": "YOUR_TOKEN"
}
}
}
}
)
```

[8]ページ先頭

©2009-2025 Movatter.jp