Let’s say we want to create an API using FastAPI for document indexing and retrieval which has:
One endpoint for loading documents (pdf, URLs, html), create the embedding using FAISS vector store
One endpoint for retrieving documents from the index
Solution
Solution: with LangChain
Solution: How to call the API endpoints?