Skip to content

Changes prakhar - #2

Merged
RK-NerdyBirdy merged 3 commits into
GDGVIT:devfrom
Prakhar-Sethi012:Changes_Prakhar
Jun 12, 2026
Merged

Changes prakhar#2
RK-NerdyBirdy merged 3 commits into
GDGVIT:devfrom
Prakhar-Sethi012:Changes_Prakhar

Conversation

@Prakhar-Sethi012

Copy link
Copy Markdown
Contributor

What this PR does:

Initializes the core database infrastructure, implements a modular FastAPI architecture, and establishes isolated Alembic migrations for future-proofing our vector database.

Key Changes:

  • Docker Infrastructure: Containerized pgvector inside docker-compose.yml. Configured host port to 5433 to bypass potential local Windows PostgreSQL conflicts.
  • Modular Architecture: Split database logic into Enterprise FastAPI standards (app/models for SQLAlchemy, app/schemas for Pydantic).
  • Alembic CI/CD: Generated 3 distinct, isolated migration scripts for safety and modularity:
    1. files (Metadata and GIN tags index)
    2. file_content (pgvector 384-dimensions and Full Text Search tsvector)
    3. file_relationships (Semantic similarity mapping)
  • Data Contracts: Established baseline Pydantic schemas (DocumentIngest, DocumentSearchResponse) ready for Backend 2 to expand upon.

Testing:

  • Confirmed successful local build via docker-compose up -d.
  • Successfully executed alembic upgrade head to populate the pg17 vector database.

Prakhar-Sethi012 and others added 3 commits June 11, 2026 01:41
Added healthcheck for the database service and updated backend dependency condition.
@RK-NerdyBirdy
RK-NerdyBirdy merged commit f2e5f24 into GDGVIT:dev Jun 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants