Skip to content

Commit 2c9af74

Browse files
committed
chore(docs): add copy ubtton
1 parent 9eba47f commit 2c9af74

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ config.yaml
1717
postgres
1818
dist
1919

20-
.coverage*
20+
.coverage*
21+
22+
.DS_Store

docs/pages/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Embedbase is a single API to access both LLMs and a VectorDB\*
1414

1515
Here's a small example to do a simple Q&A search app:
1616

17-
```js
17+
```js copy
1818
import { createClient } from 'embedbase-js'
1919
// initialize client
2020
const embedbase = createClient(
@@ -34,7 +34,7 @@ const stringifiedSearchResults = searchResults
3434
.join('')
3535

3636
const answer = await embedbase
37-
.useModel('openai/gpt-3.5-turbo-16k')
37+
.useModel('openai/gpt-3.5-turbo-16k') // or google/bison
3838
.generateText(`${stringifiedSearchResults} ${question}`)
3939

4040
console.log(answer) // 'I suggest considering harem pants for your needs. Harem pants are known for their ...'

0 commit comments

Comments
 (0)