devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
342 stars 39 forks source link

Support for Embeddings Interface to Align with OpenAI API Specifications #298

Closed yangbobo2021 closed 5 months ago

yangbobo2021 commented 5 months ago

Summary

We propose to introduce support for an embeddings interface within our project. The primary goal is to align with the OpenAI API specifications, facilitating compatibility and interoperability with certain open-source libraries that offer similarity computation functionalities.

Motivation

OpenAI's API has set a precedent in terms of ease of use and integration capabilities, especially for AI and machine learning applications. By aligning our project's interface with theirs, we can enhance our toolkit's utility, making it more accessible for developers working on projects that require similarity calculations and other AI features that rely on embeddings.

Proposed Solution

  1. Interface Design: Design an embeddings interface that closely mirrors the structure and functionality of the OpenAI API. This would include methods for generating and retrieving embeddings for a given input.

  2. Integration with Open-Source Libraries: Ensure that our interface is compatible with widely-used open-source libraries for similarity calculations. This involves testing and potentially contributing to these libraries to ensure seamless interoperability.

  3. Documentation and Examples: Provide extensive documentation on how to use the new embeddings interface, along with practical examples. Illustrate how it can be leveraged to improve similarity calculations in a variety of applications.

Challenges

Request for Comments

We are seeking feedback on the proposed solution, especially regarding:

Your insights and suggestions will be invaluable as we work to make this feature a robust and useful addition to our project.