
LANGCHAIN — Chat Your Data Submissions?
Software and cathedrals are much the same — first we build them, then we pray. — Sam Redwine
Creating a chatbot over your own data is an exciting and innovative challenge. The LangChain blog recently hosted a week-long “Chat-Your-Data Challenge” that encouraged participants to build chatbots and submit their projects. The challenge resulted in a diversity of document loaders and end-to-end examples. Here are some of the noteworthy projects:
TokBot
- Author: Andrew Gleave
- Description: A GPT-3/LangChain bot that answers questions about the TokCast podcast and provides relevant video excerpts.
- GitHub Repo: https://github.com/andrewgleave/tokbot
Ask Everything About Me
- Author: Yongtae
- Description: This bot can analyze your tweets and show you what you are interested in these days, answer questions about you from your blog or profile.
- GitHub Repo: https://github.com/Yongtae723/chat-your-data
Roam QA
- Author: JimmyLv
- Description: Ask questions to your Roam Research graph in natural language.
- GitHub Repo: https://github.com/JimmyLv/roam-qa
Chat-Your-Data Self Hosted
- Author: Misbah Syed
- Description: Create a ChatGPT-like experience over your custom docs using LangChain.
- GitHub Repo: https://github.com/misbahsy/chat-your-data-self-hosted
For developers interested in building similar projects, the following code snippets provide an overview of how to interact with GitHub APIs to retrieve repository information.
import requests
# Replace 'username' with the GitHub username
username = 'username'
# Fetching repository information
repo_url = f'https://api.github.com/users/{username}/repos'
repos = requests.get(repo_url).json()
# Printing repository details
for repo in repos:
print("Repository Name:", repo['name'])
print("Repository Description:", repo['description'])
print("Repository URL:", repo['html_url'])
print("Star Count:", repo['stargazers_count'])
print("Language:", repo['language'])
print("\n")In the code above, the requests library is used to send HTTP requests to the GitHub API. The API endpoint https://api.github.com/users/{username}/repos retrieves the repositories of a specific GitHub user. The response is then parsed to extract repository details such as name, description, URL, star count, and language.
As the LangChain blog mentioned, the winner of the competition will be decided by the GitHub repo that has the most stars at the end of the week. Therefore, it’s essential for participants and enthusiasts to star their favorite projects.
In summary, the LangChain blog’s “Chat-Your-Data Challenge” showcased various innovative chatbot projects. By leveraging the provided code snippet, developers can interact with the GitHub API to retrieve repository information and stay engaged with similar challenges in the future.
