Skip to content

BenGardiner123/langchainjs-chat-with-your-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat_ur_repo

Langchain Chat with Your Github

This repository showcases an exciting implementation of Langchain.js, enabling you to have interactive conversations with a GitHub repository using JavaScript. With this setup, you can extract information, ask questions, and gain insights from the repository's content.

Getting Started

To use this Langchain Chat with Your Github repository, follow these steps:

  1. Clone this repository to your local machine.
  2. Install the necessary dependencies by running npm install.
  3. Create a .env file in the root directory of the project and add your OpenAI API key with the following format: OPENAI_API_KEY=YOUR_API_KEY and a GITHUB_ACCESS_TOKEN
  4. Build the project using TypeScript by running npm run build.
  5. Start the application by running npm run dev.

Usage

Once the application is running, you can interact with the GitHub repository by having conversations and asking questions by using the query. The Langchain.js library enables you to extract information and gain insights from the repository's content.

Feel free to explore and customize the code to suit your needs.

Contributing

Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request. Ensure that your changes align with the repository's coding standards.

License

This project is licensed under the MIT License.

Contact

If you have any questions or inquiries, feel free to contact the repository owner via email or submit an issue in the GitHub repository.

Happy coding!

About

This is the starter code for an example of storing a github repo in a vector store and chatting with it as a knowledge base

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published