🎉 Introduction to new functions of GPTCache
- Support to use the cohere rerank api to evaluate the similarity
from gptcache.similarity_evaluation import CohereRerankEvaluation
evaluation = CohereRerankEvaluation()
score = evaluation.evaluation(
{
'question': 'What is the color of sky?'
},
{
'answer': 'the color of sky is blue'
}
)
- Improve the gptcache server api, refer to the "/docs" path after starting the server
- Fix the bug about the langchain track token usage
What's Changed
- Add input summarization. by @wxywb in #404
- Langchain track token usage by @SimFG in #409
- Support to download the cache files by @SimFG in #410
- Support to use the cohere rerank api to evaluate the similarity by @SimFG in #412
Full Changelog: 0.1.29...0.1.30