{"id":19820379,"url":"https://github.com/denishlamichhane/chatbotintern","last_synced_at":"2025-10-16T07:37:01.712Z","repository":{"id":228830365,"uuid":"775002655","full_name":"DenishLamichhane/ChatBotIntern","owner":"DenishLamichhane","description":"Intern project task using langchain and chat with multiple document","archived":false,"fork":false,"pushed_at":"2024-03-21T15:02:25.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T16:37:44.896Z","etag":null,"topics":["chatbot","gemini","huggingface","intern","langcahin"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/DenishLamichhane.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}},"created_at":"2024-03-20T15:32:05.000Z","updated_at":"2024-03-21T15:02:28.000Z","dependencies_parsed_at":"2025-01-11T08:27:16.371Z","dependency_job_id":null,"html_url":"https://github.com/DenishLamichhane/ChatBotIntern","commit_stats":null,"previous_names":["denishlamichhane/chatbotintern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DenishLamichhane/ChatBotIntern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenishLamichhane%2FChatBotIntern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenishLamichhane%2FChatBotIntern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenishLamichhane%2FChatBotIntern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenishLamichhane%2FChatBotIntern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DenishLamichhane","download_url":"https://codeload.github.com/DenishLamichhane/ChatBotIntern/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenishLamichhane%2FChatBotIntern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279166204,"owners_count":26117989,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chatbot","gemini","huggingface","intern","langcahin"],"created_at":"2024-11-12T10:23:06.817Z","updated_at":"2025-10-16T07:37:01.686Z","avatar_url":"https://github.com/DenishLamichhane.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatBotIntern\n# Palm Mind\n# gemini\n# langchain\n\nThe provided code implements a chatbot system that utilizes Langchain for natural language processing and document indexing. Here's a breakdown of the code:\n\n**Setting Up Langchain and Indexing Documents:**\nLangchain's OpenAI model is initialized with the provided API key.\nThe construct_index function reads text documents from a specified directory path and constructs an index using VectorStoreIndex from llama_index.core. The index is saved to disk using pickle for later retrieval.\n\n\n**Collecting User Information:**\nThe collect_user_info function prompts the user to input their name, phone number, and email. It validates the input using regular expressions and calls the call_user function if the input is valid.\n\n\n**Initiating a Call:**\nThe call_user function simulates calling the user by printing a message with their provided information. You can add code here to initiate a real call using a telephony service like Twilio.\n\n\n**Asking the AI:**\nThe ask_ai function prompts the user to input queries. If the query is \"call me,\" it triggers the user information collection process. Otherwise, it generates a response using Langchain and displays it.\n\n\n**Running the Chatbot:**\nThe ask_ai function is called with the constructed index to start the chatbot interaction.\nThis code allows users to interact with the chatbot, ask queries, and request a call by providing their information. The chatbot generates responses based on the queries using Langchain's AI model.\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenishlamichhane%2Fchatbotintern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenishlamichhane%2Fchatbotintern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenishlamichhane%2Fchatbotintern/lists"}