Skip to content

Commit

Permalink
Add example for nomic integration
Browse files Browse the repository at this point in the history
Signed-off-by: Aakash Thatte <[email protected]>
  • Loading branch information
sky-2002 committed Feb 25, 2024
1 parent 957ae49 commit 7701be7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,20 @@ paddlenlp = PaddleNLP()

</details>

<details>

<summary> Nomic </summary>

```python
from gptcache.embedding import Nomic

nm = Nomic(api_key='your-api-key')
# nm.dimension
# nm.to_embeddings
```

</details>

### Custom embedding

The function has two parameters: the preprocessed string and parameters reserved for user customization. To acquire these parameters, a similar method to the one above is used: `kwargs.get("embedding_func", {})`.
Expand Down

0 comments on commit 7701be7

Please sign in to comment.