Swagger-RAG is an innovative tool that transforms Swagger (OpenAPI) JSON files into easily searchable, natural language chunks. It features a CLI chatbot for quick Q&A, enabling users to retrieve API documentation efficiently. Also extensible to other interfaces, it ensures smooth integration for diverse needs.
The swagger-rag project is an innovative open-source solution built with Kotlin and Spring Boot, designed to enhance the accessibility of API documentation through advanced natural language processing. This tool parses Swagger (OpenAPI) JSON files, transforms API descriptions into natural language document chunks, and facilitates Retrieval-Augmented Generation (RAG) capabilities via a command-line interface (CLI) chatbot. Additionally, it offers extensibility for integration with other platforms, such as SlackBot.
Interact with the CLI chatbot to uncover information about APIs effortlessly. For example:
> How do I create a new user?
Found 3 relevant APIs:
1. [POST] /users
Register New User
Registers a new user in the system.
**Responses:**
[201] User successfully created
Relevance score: 0.81
2. [POST] /orders
Create New Order
Creates a new order.
**Responses:**
[201] Order successfully created
Relevance score: 0.72
3. [POST] /products
Register New Product
Registers a new product in the system.
**Responses:**
[201] Product successfully created
Relevance score: 0.72
OPENAI_API_KEY for embedding functionality.Contributions to this project are welcome! Collaborative efforts can be made through issues or pull requests aimed at fixing bugs, introducing new features, or enhancing functionality. For noteworthy changes, it is advisable to discuss proposals via issues prior to implementation.
No comments yet.
Sign in to be the first to comment.