A lightweight, locally deployable GenAI pipeline that performs fundamental analysis of industries by analyzing PDFs, Excel sheets, and API sources assigned by the user. This project leverages Retrieval-Augmented Generation (RAG) with local LLMs and embedding models.
- Ingest data from PDF, Excel, and API sources
- Preprocess and store data as clean text files
- Generate vector embeddings locally with
sentence-transformers - Use lightweight LLMs such as
phi-3-miniormistral-7b - Perform contextual question-answering via RAG
- Simple CLI or Streamlit interface for interaction
genai\_fundamental\_analysis/
βββ data\_sources/ # Raw input data (PDF, Excel, API)
βββ configs/ # Configuration YAMLs
βββ embeddings/ # Vector store & intermediate text chunks
βββ models/ # Local LLMs if needed
βββ scripts/ # Modular pipeline scripts
βββ main.py # Entry point script
βββ README.md # Project documentation
# 1. Clone the repository
git clone https://github.com/{os.userid}/genai_fundamental_analysis.git
cd genai_fundamental_analysis
# 2. Create virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
# 3. Install dependencies
pip install -r requirements.txt
# 4. Run the pipeline
python main.py- LLMs:
phi-3-mini/mistral-7b(viallama.cpp) - Embeddings:
BAAI/bge-small-en(sentence-transformers) - Vector DB:
FAISS/Chroma - Frameworks:
LangChainorLlamaIndexfor RAG - Interface:
Streamlit(optional UI)
βAnalyze all uploaded PDFs and Excel files related to the Pharma sector. Summarize key risks, growth indicators, and recent developments.β
The system will:
- Ingest and parse source files
- Create vector embeddings
- Use a local LLM to search and synthesize answers
- Present results in CLI or Streamlit
Contributions are welcome! Feel free to fork the repo, raise issues, or submit pull requests.
You can also connect with me on LinkedIn to collaborate on similar use cases.
This project is licensed under the MIT License.