{"id":28255364,"url":"https://github.com/hijaz/sourcerer","last_synced_at":"2025-07-15T19:06:48.758Z","repository":{"id":289599648,"uuid":"971778939","full_name":"hijaz/sourcerer","owner":"hijaz","description":"An experimental langgraph/copilot kit agent which provides verified answers with sources","archived":false,"fork":false,"pushed_at":"2025-04-24T15:14:51.000Z","size":1760,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T17:51:20.728Z","etag":null,"topics":["copilotkit","langgraph"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hijaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-24T03:41:00.000Z","updated_at":"2025-04-24T15:14:54.000Z","dependencies_parsed_at":"2025-04-24T05:18:45.931Z","dependency_job_id":"90c533a8-942d-419a-909f-029ab2124310","html_url":"https://github.com/hijaz/sourcerer","commit_stats":null,"previous_names":["hijaz/sourcerer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hijaz/sourcerer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijaz%2Fsourcerer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijaz%2Fsourcerer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijaz%2Fsourcerer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijaz%2Fsourcerer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hijaz","download_url":"https://codeload.github.com/hijaz/sourcerer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijaz%2Fsourcerer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265452908,"owners_count":23768037,"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":["copilotkit","langgraph"],"created_at":"2025-05-19T21:13:58.993Z","updated_at":"2025-07-15T19:06:48.696Z","avatar_url":"https://github.com/hijaz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sourcerer\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"Sourcerer.png\" alt=\"Sourcerer Logo\" width=\"400\"/\u003e\u003c/p\u003e\n\nSourcerer is an AI-powered assistant that can verify claims using Google Fact Check Tools API and perform web searches with Tavily API, returning concise answers with source citations. It consists of two components:\n\n- **Agent**: A FastAPI server running a LangGraph workflow with `FactCheckClaim` and `FindWebSearch` tools.\n- **UI**: A Next.js application using CopilotKit React UI for chat interaction.\n\n---\n\n## Features\n\n- Verify factual claims via Google Fact Check Tools API.\n- Fallback to web search (Tavily API) when no fact-check exists.\n- Clear answers with citations.\n- Modern, responsive chat interface.\n\n## Prerequisites\n\n- Node.js (\u003e=16) with pnpm or npm\n- Python (\u003e=3.8)\n- Poetry (for Python dependencies)\n- Environment variables:\n  - `OPENAI_API_KEY`  (OpenAI API key)\n  - `TAVILY_API_KEY`  (Tavily web search API key)\n  - `GOOGLE_API_KEY`  (Google Fact Check Tools API key)\n\n## LangGraph Studio\n\nLangGraph Studio is a web-based UI for visualizing and debugging your LangGraph workflows.\n\nTo launch Studio:\n\n```bash\ncd agent/sourcerer\npoetry run langgraph studio --source sourcerer/langgraph/agent.py --port 8081\n```\n\nOpen http://localhost:8081 in your browser.\n\nAlternatively, if installed globally:\n\n```bash\npip install langgraph\nlanggraph studio --source agent/sourcerer/langgraph/agent.py\n```\n\n## Setup\n\n### Agent\n\n```bash\ncd agent/sourcerer\npoetry install\ncp .env.example .env          # add your API keys\npoetry run python sourcerer/demo.py\n```\n\nThe agent will start at `http://0.0.0.0:8000` with a `/copilotkit` endpoint.\n\n### UI\n\n```bash\ncd sourcerer_ui\npnpm install                  # or npm install\ncp .env.example .env.local    # add your OPENAI_API_KEY\npnpm run dev\n```\n\nOpen `http://localhost:3000` in your browser to chat with Sourcerer.\n\n## Project Structure\n\n```\nsourcerer\n├── agent/sourcerer\n│   ├── sourcerer/langgraph   # LangGraph nodes and state\n│   ├── sourcerer/demo.py     # FastAPI entrypoint\n│   ├── pyproject.toml\n│   └── .env.example\n├── sourcerer_ui\n│   ├── src/components/Main.tsx\n│   └── .env.example\n├── README.md\n└── LICENSE\n```\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhijaz%2Fsourcerer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhijaz%2Fsourcerer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhijaz%2Fsourcerer/lists"}