Skip to content

sabszh/PortfolioBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ PortfolioBot

A simple chatbot that helps students reflect on their projects and build academic portfolios.
Built with Streamlit and OpenAI's GPT-4o.


Portfolio screenshot

βœ… Features

  • 🧠 GPT-4o chatbot with a custom prompt focused on reflection and identity-building
  • πŸ“Ž Upload your own project files:
    • PDF, DOCX, TXT, CSV, MD, PPTX, XLSX, HTML
  • πŸ” Uses a shared vector store for reference material (e.g. example portfolios)
  • πŸ’¬ Maintains full conversation memory within the session

βš™οΈ Setup

  1. Clone the repo:

    git clone https://github.com/your-username/portefoljebot.git
    cd portefoljebot
  2. Install dependencies:

    pip install -r requirements.txt
  3. Create a .streamlit/secrets.toml file with your OpenAI API key, your custom prompt and login credentials:

    OPENAI_API_KEY=sk-...
    PROMPT_TEXT = """...
    LOGIN_USERNAME = ...
    LOGIN_PASSWORD = ...
    
  4. Run the app:

    streamlit run app.py

πŸ“‚ Project Structure

PortfolioBot/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ .streamlit/         # Streamlit config and secrets
β”‚   β”‚   └── secrets.toml    # API key, custom prompt, login credentials
β”‚   β”œβ”€β”€ app.py              # Streamlit UI (chat interface, login)
β”‚   └── main.py             # Backend logic (file parsing, GPT calls)
β”‚
β”œβ”€β”€ image.png               # Optional visual asset (e.g. for docs)
β”œβ”€β”€ .gitignore              # Ignore secrets, envs, cache, etc.
β”œβ”€β”€ README.md               # Documentation
└── requirements.txt        # Python dependencies

πŸ›  Requirements

  • Python 3.9+
  • OpenAI Python SDK
  • Streamlit
  • PyPDF2, python-docx, python-pptx, openpyxl, beautifulsoup4

πŸ” Notes

  • Uploaded files are only used during the active chat session.
  • Shared vector store data is static and anonymized.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages