Llm, Rag, Knowledge Graphs, Vector Search, Retrieval Augmented.
rag_chain.invoke({"question":query,"context":context}) return answer def index_docs_vectordb(path): loader = PyPDFDirectoryLoader(path) pages = loader.load_and_split() faiss_index = FAISS.from_documents(pages, OpenAIEmbeddings()) return faiss_index # index docs path = "earning-calls-apple" # the