This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import streamlit as st | |
| from langchain_community.document_loaders import PDFPlumberLoader | |
| from langchain_experimental.text_splitter import SemanticChunker | |
| from langchain_community.embeddings import HuggingFaceEmbeddings | |
| from langchain_community.vectorstores import FAISS | |
| from langchain_community.llms import Ollama | |
| from langchain.prompts import PromptTemplate | |
| from langchain.chains.llm import LLMChain | |
| from langchain.chains.combine_documents.stuff import StuffDocumentsChain | |
| from langchain.chains import RetrievalQA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git | |
| cd nv-codec-headers | |
| vi Makefile # change the first line to PREFIX = ${CONDA_PREFIX} | |
| make install | |
| cd .. | |
| git clone https://git.ffmpeg.org/ffmpeg.git | |
| cd ffmpeg | |
| git checkout n4.2.2 | |
| conda install nasm |