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

Commita3a2401

Browse files
Moloejoegitbook-bot
authored andcommitted
GITBOOK-108: No subject
1 parent9077f8f commita3a2401

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎pgml-cms/docs/introduction/apis/client-sdks/getting-started.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Continuing with `main`
5757
{% tab title="JavaScript" %}
5858
```javascript
5959
// Create a pipeline using the default model and splitter
60-
model=pgml.newModel();
61-
splitter=pgml.newSplitter();
62-
pipeline=pgml.Pipeline("sample_pipeline", model, splitter);
60+
constmodel=pgml.newModel();
61+
constsplitter=pgml.newSplitter();
62+
constpipeline=pgml.newPipeline("sample_pipeline", model, splitter);
6363
awaitcollection.add_pipeline(pipeline);
6464
```
6565
{% endtab %}
@@ -87,6 +87,7 @@ Continuing with `main`
8787
{% tabs %}
8888
{% tab title="JavaScript" %}
8989
```javascript
90+
// Create and upsert documents
9091
constdocuments= [
9192
{
9293
id:"Document One",
@@ -130,6 +131,7 @@ Continuing with `main`
130131
{% tabs %}
131132
{% tab title="JavaScript" %}
132133
```javascript
134+
// Query
133135
constqueryResults=await collection
134136
.query()
135137
.vector_recall("Some user query that will match document one first", pipeline)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp