Skip to content

Commit a3a2401

Browse files
Moloejoegitbook-bot
authored andcommitted
GITBOOK-108: No subject
1 parent 9077f8f commit a3a2401

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+
const model = pgml.newModel();
61+
const splitter = pgml.newSplitter();
62+
const pipeline = pgml.newPipeline("sample_pipeline", model, splitter);
6363
await collection.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
const documents = [
9192
{
9293
id: "Document One",
@@ -130,6 +131,7 @@ Continuing with `main`
130131
{% tabs %}
131132
{% tab title="JavaScript" %}
132133
```javascript
134+
// Query
133135
const queryResults = await collection
134136
.query()
135137
.vector_recall("Some user query that will match document one first", pipeline)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy