{"id":20603556,"url":"https://github.com/mohitbansal964/cricbot","last_synced_at":"2026-02-10T23:32:32.835Z","repository":{"id":50209911,"uuid":"126067812","full_name":"mohitbansal964/Cricbot","owner":"mohitbansal964","description":"ChatBot for live scores of cricket matches.","archived":false,"fork":false,"pushed_at":"2024-10-13T19:48:04.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T09:38:03.608Z","etag":null,"topics":["api-integration","chatbot","cricket","genai","genai-chatbot","gpt-35-turbo","gpt-4o","python3","rag","retreival-augmented-generation"],"latest_commit_sha":null,"homepage":"https://cricketbot.streamlit.app/","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/mohitbansal964.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-20T18:55:33.000Z","updated_at":"2024-10-13T19:48:08.000Z","dependencies_parsed_at":"2025-09-26T09:31:17.950Z","dependency_job_id":null,"html_url":"https://github.com/mohitbansal964/Cricbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohitbansal964/Cricbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitbansal964%2FCricbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitbansal964%2FCricbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitbansal964%2FCricbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitbansal964%2FCricbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohitbansal964","download_url":"https://codeload.github.com/mohitbansal964/Cricbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitbansal964%2FCricbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29321364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-integration","chatbot","cricket","genai","genai-chatbot","gpt-35-turbo","gpt-4o","python3","rag","retreival-augmented-generation"],"created_at":"2024-11-16T09:17:45.670Z","updated_at":"2026-02-10T23:32:32.827Z","avatar_url":"https://github.com/mohitbansal964.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cricbot Application\n\n## Overview\n\nCricbot is a chatbot application designed to provide live cricket scores and handle various user intents. It leverages OpenAI's language models to understand user queries and generate appropriate responses. The application is structured to ensure modularity and ease of maintenance.\n\n## Directory Structure\n\n```\nCricbot/\n├── app/\n│   ├── src/\n│   │    ├── constants/\n│   │    │   ├── __init__.py\n│   │    │   └── constants.py\n│   │    ├── models/\n│   │    │   ├── __init__.py\n│   │    │   └── match_details.py\n│   │    ├── prompts/\n│   │    │   ├── all_live_matches_response_prompt.txt\n│   │    │   ├── fallback_response_prompt.txt\n│   │    │   ├── intent_identifier_prompt.txt\n│   │    │   └── live_score_response_prompt.txt\n│   │    ├── services/\n│   │    │   ├── __init__.py\n│   │    │   ├── intent_identifier_service.py\n│   │    │   ├── intent_handler_service.py\n│   │    │   ├── live_score_service.py\n│   │    │   └── response_generator_service.py\n│   │    ├── utils/\n│   │    │   ├── __init__.py\n│   │    │   └── common_util.py\n│   │    ├── chains/\n│   │    │   ├── __init__.py\n│   │    │   └── cricbot_chain.py\n│   │    ├── enums/\n│   │    │   ├── __init__.py\n│   │    │   └── intents.py\n│   ├── main.py\n│   └── cricbot_app.py\n├── .env\n├── .gitignore\n├── README.md\n└── requirements.txt\n```\n\n## Setup\n\n### Prerequisites\n\n- Python 3.x\n- pip (Python package installer)\n\n### Installation\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/mohitbansal964/Cricbot.git\n   cd Cricbot\n   ```\n\n2. **Create a Virtual Environment**\n\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate  # On Windows use `.venv\\Scripts\\activate`\n   ```\n\n3. **Install Dependencies**\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Set Up Environment Variables**\n\n   Create a `.env` file in the root directory and add your OpenAI API key:\n\n   ```\n   OPENAI_API_KEY=your_openai_api_key_here\n   ```\n\n## Usage\n\nRun the application using the following command:\n\n```bash\npython app/main.py\n```\n\nInteract with the bot by typing your queries. Type \"exit\" to terminate the session.\n\n## Components\n\n- **Constants**: Stores constant values used across the application.\n- **Models**: Contains data models like `MatchDetails`.\n- **Prompts**: Stores prompt templates for generating responses.\n- **Services**: Contains the core logic for intent identification, live score fetching, and response generation.\n- **Utils**: Provides utility functions for common tasks.\n- **Chains**: Manages the sequence of operations using Langchain for generating responses.\n- **Enums**: Defines enumerations used across the application.\n\n## Recent Updates\n\n- **Streamlit Integration**: The application now includes a Streamlit interface for a more interactive user experience.\n- **Enhanced Error Handling**: Improved error handling mechanisms for better reliability.\n- **Modular Codebase**: Refactored code to enhance readability and maintainability.\n- **Langchain Integration**: Utilized Langchain to streamline the sequence of operations and improve response generation.\n- **Streaming Enabled**: Added streaming capabilities for real-time interaction.\n- **Deprecated Cricbot Service**: Replaced with a more modular approach using langchains\n\n## Future Enhancements\n\n- **Logging**: Add logging for better monitoring and debugging.\n- **Testing**: Implement unit and integration tests to ensure reliability.\n- **Advanced User Interface**: Develop a GUI for a more interactive user experience.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n\nThis README provides a comprehensive overview of the Cricbot application, including setup instructions, usage, and future enhancements. Feel free to modify the content to better suit your project's needs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohitbansal964%2Fcricbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohitbansal964%2Fcricbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohitbansal964%2Fcricbot/lists"}