Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sonam-pankaj95 authored Apr 14, 2024
1 parent 5a5f7d4 commit 86960f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ pip install embed-anything`

Requirements:

Please check if you already have the OpenAI key in the Environment variable. We have only released the OpenAI embedder library so far. Please stay tuned for updates for the local embeddings as well.
1. Please check if you already have the OpenAI key in the Environment variable. We have only released the OpenAI embedder library so far. Please stay tuned for updates for the local embeddings as well.
2. Please add libtorch address like it has been stated below.


## :astronaut: Get Started
Expand All @@ -52,6 +53,11 @@ data = embed_anything.embed_file("filename.pdf")

```os.add_dll_directory(r'address_of_libtorch_desktop')
```python
data:list[EmbedData] = embed_anything.embed_directory("test_files", embeder= "Clip")
embeddings = np.array([data.embedding for data in data])
## How to get started for libtorch?
### System-wide Libtorch
Expand Down

0 comments on commit 86960f2

Please sign in to comment.