Polish reference docs (#7045)

This PR fixes broken links in the reference docs.
This commit is contained in:
Johnny Lim
2023-07-02 23:08:51 +09:00
committed by GitHub
parent e5f6f0ffc4
commit 9dc77614e3
4 changed files with 6 additions and 5 deletions

View File

@@ -26,7 +26,8 @@ raw_documents = TextLoader('../../../state_of_the_union.txt').load()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
documents = text_splitter.split_documents(raw_documents)
db = FAISS.from_documents(documents, OpenAIEmbeddings())
embeddings = OpenAIEmbeddings()
db = FAISS.from_documents(documents, embeddings)
```
### Similarity search