Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit 35ba9c7

Browse files
authored
OPENAI_API_KEY env
1 parent a995aa6 commit 35ba9c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ query = "pandas"
3535
print(indexer.query(query)[0:30])
3636
```
3737

38+
Note: make sure tge `OPENAI_API_KEY` environment variable is set. This is needed for generating the embeddings.
39+
3840
You can also use `indexer.query_nodes` to get the nodes of a query or `indexer.query_documents` to receive the entire source code files.
3941

4042
Note that if you edit any of the source code files in the `src_dir` it will efficiently re-index those files using `watchdog` and an `md5` based caching mechanism. This results in up-to-date embeddings every time you query the index.

0 commit comments

Comments
 (0)