{"id":26696716,"url":"https://github.com/cleanlab/cleanlab-codex","last_synced_at":"2025-04-13T03:28:18.812Z","repository":{"id":274887157,"uuid":"914658979","full_name":"cleanlab/cleanlab-codex","owner":"cleanlab","description":"Python client library to integrate Cleanlab Codex into RAG applications","archived":false,"fork":false,"pushed_at":"2025-04-08T23:43:22.000Z","size":322,"stargazers_count":6,"open_issues_count":8,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T00:35:22.740Z","etag":null,"topics":[],"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/cleanlab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2025-01-10T03:28:40.000Z","updated_at":"2025-04-04T15:09:22.000Z","dependencies_parsed_at":"2025-02-20T20:22:42.098Z","dependency_job_id":"8c9b7d76-411b-4ca4-b5f1-0abe51940842","html_url":"https://github.com/cleanlab/cleanlab-codex","commit_stats":null,"previous_names":["cleanlab/cleanlab-codex"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanlab%2Fcleanlab-codex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanlab%2Fcleanlab-codex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanlab%2Fcleanlab-codex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanlab%2Fcleanlab-codex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleanlab","download_url":"https://codeload.github.com/cleanlab/cleanlab-codex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248659184,"owners_count":21141091,"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":[],"created_at":"2025-03-26T20:27:27.140Z","updated_at":"2025-04-13T03:28:18.793Z","avatar_url":"https://github.com/cleanlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cleanlab Codex - Closing the AI Knowledge Gap\n\n[![Build Status](https://github.com/cleanlab/cleanlab-codex/actions/workflows/ci.yml/badge.svg)](https://github.com/cleanlab/cleanlab-codex/actions/workflows/ci.yml) [![PyPI - Version](https://img.shields.io/pypi/v/cleanlab-codex.svg)](https://pypi.org/project/cleanlab-codex) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cleanlab-codex.svg)](https://pypi.org/project/cleanlab-codex) [![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://help.cleanlab.ai/codex/api/)\n\nCodex enables you to seamlessly leverage knowledge from Subject Matter Experts (SMEs) to improve your RAG/Agentic applications.\n\nThe `cleanlab-codex` library provides a simple interface to integrate Codex's capabilities into your RAG application. \nSee immediate impact with just a few lines of code!\n\n## Demo\n\nInstall the package:\n\n```console\npip install cleanlab-codex\n```\n\nIntegrating Codex into your RAG application as a tool is as simple as:\n\n```python\nfrom cleanlab_codex import CodexTool\n\ndef rag(question, system_prompt, tools) -\u003e str:\n    \"\"\"Your RAG/Agentic code here\"\"\"\n    ...\n\n# Initialize the Codex tool\ncodex_tool = CodexTool.from_access_key(\"your-access-key\")\n\n# Update your system prompt to include information on how to use the Codex tool\nsystem_prompt = f\"\"\"Answer the user's Question based on the following Context. If the Context doesn't adequately address the Question, use the {codex_tool.tool_name} tool to ask an outside expert.\"\"\"\n\n# Convert the Codex tool to a framework-specific tool\nframework_specific_codex_tool = codex_tool.to_\u003cframework_name\u003e_tool() # i.e. codex_tool.to_llamaindex_tool(), codex_tool.to_openai_tool(), etc.\n\n# Pass the Codex tool to your RAG/Agentic framework\nresponse = rag(question, system_prompt, [framework_specific_codex_tool])\n```\n\n(Note: Exact code will depend on the RAG/Agentic framework you are using. [Other integrations](https://help.cleanlab.ai/codex/concepts/integrations/) are available if you prefer to avoid Tool Calls.)\n\u003c!-- TODO: add demo video --\u003e\n\u003c!-- Video should show Codex tool added to a RAG system, question asked that requires knowledge from an outside expert, Codex tool used to ask an outside expert, and expert response returned to the user --\u003e\n\n## Why Codex?\n- **Detect Knowledge Gaps and Hallucinations**: Codex identifies knowledge gaps and incorrect/untrustworthy responses in your AI application, to help you know which questions require expert input.\n- **Save SME time**: Codex ensures that SMEs see the most critical knowledge gaps first.\n- **Easy Integration**: Integrate Codex into any RAG/Agentic application with just a few lines of code.\n- **Immediate Impact**: SME answers instantly improve your AI, without any additional Engineering/technical work.\n\n## Documentation\n\nComprehensive documentation along with tutorials and examples can be found [here](https://help.cleanlab.ai/codex).\n\n## License\n\n`cleanlab-codex` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleanlab%2Fcleanlab-codex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleanlab%2Fcleanlab-codex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleanlab%2Fcleanlab-codex/lists"}