Nuxt 3 DocuSearch AI offers a streamlined interface for developers to interact with Nuxt 3 documentation more efficiently. By leveraging a fine-tuned GPT-3.5 model and integrating directly with Nuxt 3, the application provides concise, context-aware answers to user queries, enhancing developer experience and productivity. This tool combines Nuxt 3's modern web development framework with the latest advancements in AI to offer a responsive and intuitive query-response interface, simplified by the use of websockets for real-time communication. Designed with simplicity and efficiency in mind, it is an essential tool for developers looking to navigate Nuxt 3 documentation effectively.
The Nuxt 3 DocuSearch AI features a streamlined chat-like interface that facilitates an engaging way for developers to interact with Nuxt 3 documentation. At its core, the interface boasts a responsive top navigation bar and a dedicated input area at the bottom, encouraging users to submit their queries in a conversational manner. This design choice departs from traditional documentation interfaces, offering a more dynamic and interactive user experience. Responses, powered by a fine-tuned GPT-3.5 model, are delivered in real-time, thanks to the integration of websockets, ensuring prompt and relevant information retrieval. A side navigation menu provides quick access to additional features and settings, enhancing the application's usability. The application leverages LangChain for streamlined AI interactions, ShikiJS for syntax highlighting within returned code snippets, and Markdown-it for parsing and displaying markdown content, ensuring a rich and informative display of information.
To set up this project locally, please follow these steps:
- Clone this repository to your local machine.
- Navigate into the project directory.
- Install the necessary packages with
pnpm install
. - Create an
.env
file in the root directory and provide your OpenAI API key - Start the development server on
http://localhost:3000
withpnpm run dev
.
Please ensure you have Node.js, npm, and Redis installed on your system before attempting to run this project.
To use the application:
- Navigate to
http://localhost:3000
in your web browser. - Input your request in the provided textarea field at the bottom of the page.
- Press the "Send" button or hit "Enter" to submit your query.
- The application will respond with relevant information in real-time, providing concise and context-aware answers to your queries.
If you want to build the application for production, use the following command:
pnpm run build
To preview the production build locally:
pnpm run preview
We welcome contributions from everyone, and are grateful for every pull request! If you'd like to contribute, please consider the following steps:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Write clear, concise, and descriptive commit messages.
- Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
- If your pull request addresses an issue, please include
closes #xxx
in your PR message wherexxx
is the issue number.
Please ensure to adhere to this project's Code of Conduct. Ensure your contributions pass all tests before opening a pull request. If you add or change any code, please add tests to accompany your changes. For more details, check our Contributing Guidelines.
We aim to foster an inclusive and respectful community for everyone involved. All contributors and participants agree to adhere to our Code of Conduct. Please make sure to read it before participating.
This project is licensed under the MIT License. The license allows others to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, provided that they include the original copyright notice, this permission notice, and disclaimers of warranty. See the LICENSE file for full details.