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.
To use this Langchain Chat with Your Github repository, follow these steps:
- Clone this repository to your local machine.
- Install the necessary dependencies by running
npm install
. - 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 - Build the project using TypeScript by running
npm run build
. - Start the application by running
npm run dev
.
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.
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.
This project is licensed under the MIT License.
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!