Repository navigation
Rewrite README, add MIT LICENSE and .env.example - #4
Merged
Merged
Conversation
README describes only what the code does today: section chunking, OpenAI embeddings cached in JSON, in-memory dot-product ranking, gpt-4o-mini answers, conversation history in PostgreSQL via SQLAlchemy and Alembic. The curl example is marked as illustrative. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QVi7kKzGQhgPKX8sDzTu6i
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QVi7kKzGQhgPKX8sDzTu6i
… and CI - OpenAI clients are created on first use; embeddings load in the FastAPI lifespan - Pydantic schemas moved to app/schemas.py; app/models.py keeps only the ORM - DatabaseService uses context-managed sessions; unused methods and load_knowledge_base/chunk_text removed - alembic/env.py reads DATABASE_URL (app/__init__.py loads .env); init_db.py removed - .model_dump(), sqlalchemy.orm.declarative_base, timezone-aware UTC helper - tests/ with fakes for OpenAI and the database; ruff config; GitHub Actions workflow - README updated to match Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QVi7kKzGQhgPKX8sDzTu6i
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QVi7kKzGQhgPKX8sDzTu6i
Code cleanup: lazy clients, lifespan, schemas split, tests and CI
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
README.mdrewritten from scratch in English, with the fixed structure: one-line description, Architecture, Example, Running locally, What is not here, Author. Every statement was checked against the code onmain.LICENSE: MIT, Copyright (c) 2026 Lucca Matuck..env.example: variable names only (OPENAI_API_KEY,DATABASE_URL).Things to review
alembic upgrade headwas run for real and created the tables.app/main.pyheader,init_db.pydocstring).🤖 Generated with Claude Code
https://claude.ai/code/session_01QVi7kKzGQhgPKX8sDzTu6i