How bnovik0v/company_search_rag works
Main Components
a. Frontend Layer:
• Streamlit Web Interface (Primary user interaction point)
• Filter Controls Component
• Search Interface Component
• Results Display Component
b. Application Layer:
• Python Backend (app.py)
• Authentication Module (password protection)
• Data Processing Module
c. External Services:
• Pinecone Vector Database Service
d. Data Storage:
• Local CSV Data Store (data/sample_with_descriptions.csv)
e. Container Infrastructure:
• Docker Container
• Docker Compose Environment
Component Relationships and Flow
• User → Streamlit Interface
• Streamlit Interface → Authentication Module (for protected searches)
• Streamlit Interface → Data Processing Module
• Data Processing Module → Local CSV Data Store
• Data Processing Module → Pinecone Service
• Pinecone Service → Results → Streamlit Interface
Additional Elements
a. Environment Variables Section:
• PINECONE_API_KEY
• PINECONE_INDEX_NAME
• APP_PASSWORD
b. Port Mapping:
• Container Port 8501 → Host Port 8501
Key Architectural Patterns to Highlight
• Containerized Application Pattern
• External Service Integration Pattern
• Protected API Pattern (password authentication)
• Data Processing Pipeline Pattern
Technical Stack Callouts
• Streamlit (Web Framework)
• Python (Backend Language)
• Pinecone (Vector Database)
• Docker (Containerization)
• CSV (Data Storage)