Skip to content

Commit

Permalink
fix: Changes from lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-sdk-js committed Sep 12, 2024
1 parent 9680f53 commit 62c3e92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/langchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ You have the option to either embed a text, or a document, which has to be repre
Below are two examples.

```ts
const embeddingClient = new OpenAIEmbeddingClient({ modelName: 'text-embedding-ada-002' });
const embeddedText = await embeddingClient.embedQuery('Paris is the capitol of France.');
const embeddingClient = new OpenAIEmbeddingClient({
modelName: 'text-embedding-ada-002'
});
const embeddedText = await embeddingClient.embedQuery(
'Paris is the capitol of France.'
);
const embeddedDocument = await embeddingClient.embedDocuments([
'Page 1: Paris is the capitol of France.',
'Page 2: It is a beautiful city.'
Expand Down

0 comments on commit 62c3e92

Please sign in to comment.