Spaces:
Build error
Build error
Download src/vector_store.py from Ajeet001/streamlit_app: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/spaces/Ajeet001/streamlit_app/resolve/main/src/vector_store.py
- Command line
-
hf download hf://spaces/Ajeet001/streamlit_app/src/vector_store.py
-
curl -L -o vector_store.py https://huggingface.co/spaces/Ajeet001/streamlit_app/resolve/main/src/vector_store.py
250 Bytes
| from langchain_community.vectorstores import FAISS | |
| def create_vectorstore(doc_chunks, embeddings): | |
| """Create a FAISS vector store from document chunks.""" | |
| vectorstore = FAISS.from_documents(doc_chunks, embeddings) | |
| return vectorstore |