marqo-ai / marqo

Unified embedding generation and search engine. Also available on cloud - cloud.marqo.ai
https://www.marqo.ai/
Apache License 2.0
4.47k stars 183 forks source link

Marqo Integration into cacheGPT #762

Open mattma1970 opened 7 months ago

mattma1970 commented 7 months ago

Is your feature request related to a problem? Please describe. I'm building a customer service voice-bot and time to first utterance (a. time to yield first sentence) is critical for creating a synchronous LLM conversation CX. However, current commercial API's provide c. 50 tokens/second on a good day. If the first utterance has more than 20 words, then the entire latency budget is blown. Caching is the obvious solution and, in particular semantic caching, as exemplified by cacheGPT (6.1k stars) in order to use natural language understanding to hit the cache.

Describe the solution you'd like

  1. Create an integration of marqo with cacheGPT. https://github.com/zilliztech/GPTCache?tab=readme-ov-file
  2. For bonus points, create an alternative semantic layer that uses Marqo DNA which allows us to bring our own embedding models for caching.

Describe alternatives you've considered

Additional context Add any other context or screenshots about the feature request here.

sky-2002 commented 6 months ago

Hey @mattma1970 , I have created this integration in GPTCache. Let me know if you find it useful, or any suggestions/improvements, or if there are any bugs. Looking forward to feedback!