{"id":29354259,"url":"https://github.com/janyewest/delta","last_synced_at":"2026-04-13T03:04:25.218Z","repository":{"id":303318253,"uuid":"1015054284","full_name":"janyewest/delta","owner":"janyewest","description":"consulting app","archived":false,"fork":false,"pushed_at":"2025-07-07T00:53:22.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T01:38:08.730Z","etag":null,"topics":["api","consulting","embeddings-and-vector-databases","fastapi","llm","llms","openai","postgres","psycopg2-binary","python","python3","rest-api","streamlit","supabase"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janyewest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-06T23:36:38.000Z","updated_at":"2025-07-07T01:14:49.000Z","dependencies_parsed_at":"2025-07-07T01:38:10.111Z","dependency_job_id":"9c1b5bd3-b59b-49aa-a401-c5a5f50d8e11","html_url":"https://github.com/janyewest/delta","commit_stats":null,"previous_names":["janyewest/delta"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janyewest/delta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janyewest%2Fdelta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janyewest%2Fdelta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janyewest%2Fdelta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janyewest%2Fdelta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janyewest","download_url":"https://codeload.github.com/janyewest/delta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janyewest%2Fdelta/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264384392,"owners_count":23599613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","consulting","embeddings-and-vector-databases","fastapi","llm","llms","openai","postgres","psycopg2-binary","python","python3","rest-api","streamlit","supabase"],"created_at":"2025-07-09T03:11:59.260Z","updated_at":"2026-04-13T03:04:25.186Z","avatar_url":"https://github.com/janyewest.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOW Solution Recommender\n\nAn AI-powered consulting strategist tool that matches new client needs to past Statements of Work (SOWs) and generates solution recommendations. Built with FastAPI, Supabase, OpenAI, and Streamlit.\n\n## Features\n\n- Match client prompts to similar past SOWs using embeddings\n- Generate 2–3 tailored tech solution suggestions via GPT-4o model\n- Save suggestions to Supabase table\n- Export recommendations as a TXT file\n- Simple, clean Streamlit UI\n\n---\n\n## Project Structure\n\n```bash\nconsulting-app/\n├─ main/\n   ├── .env                 # Environment variables (not committed)\n   ├── __init__.py\n   ├── app.py               # FastAPI backend with API endpoints\n   ├── run.sh               # Shell exe\n   ├── seed_db.py           # Script to generate and store embeddings\n   ├── streamlit_app.py     # Streamlit frontend UI\n   ├── requirements.txt     # Python dependencies\n\n└── static/          # Supabase schema and data tables\n   ├── supabase_schema_ddl.sql\n└── .gitignore\n└── README.md\n```\n---\n\n## Setup Instructions\n\n### 1. Environment Setup\n\n```bash\ngit clone https://github.com/your-repo/sow-recommender\ncd sow-recommender\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n### 2. Environment Variables\n\nCreate a .env file with:\n```bash\nOPENAI_API_KEY=your_openai_key\nSUPABASE_URL=your_supabase_url\nSUPABASE_KEY=your_supabase_anon_or_service_role_key\nSUPABASE_POSTGRES_URL=postgresql://user:pass@host:port/dbname\n```\n\n### 3. Database\n\nUse static/database/supabase_schema_ddl.sql to ensure you’ve created the following tables in your Supabase PostgreSQL \ninstance:\n\n```postgresql\n-- consulting.sows, consulting.clients, consulting.solutions\n-- Plus:\nCREATE TABLE consulting.embeddings (\n  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),\n  sow_id UUID UNIQUE REFERENCES consulting.sows(id) ON DELETE CASCADE,\n  embedding BYTEA\n);\n\nCREATE TABLE consulting.saved_suggestions (\n  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),\n  prompt TEXT,\n  suggestions TEXT[]\n);\n```\n\n### 4. Seed Embeddings\n\n```bash\npython seed_db.py\n```\n\n### 5. Run Shell script\n\n```bash\n./run.sh\n```\n\n## Example Prompt\n\n```bash\nWe need to integrate multiple hospital data sources\n into a unified analytics platform on the cloud.\n```\n\n## To-Do / Ideas\n\t•\tDeploy FastAPI + Streamlit online\n\t•\tAdd user login and project history\n\t•\tSupport multi-SOW report generation\n\t•\tAdd confidence score visualizations\n\n\n## Powered By\n\n\t•\tFastAPI\n\t•\tStreamlit\n\t•\tOpenAI\n\t•\tSupabase\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanyewest%2Fdelta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanyewest%2Fdelta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanyewest%2Fdelta/lists"}