https://github.com/furrmidable-crew/ccat_hyde
https://github.com/furrmidable-crew/ccat_hyde
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/furrmidable-crew/ccat_hyde
- Owner: Furrmidable-Crew
- Created: 2023-08-08T10:05:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T21:14:19.000Z (over 1 year ago)
- Last Synced: 2025-04-19T23:53:37.234Z (about 2 months ago)
- Language: Python
- Size: 466 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ccat Hyde
[](https://)
# Hypothetical Document Embedding Plugin
This plugin enables the [Hypothetical Document Embedding](https://cheshire-cat-ai.github.io/docs/conceptual/prompts/hyde/) (HyDE) technique.
HyDE consists in asking the Language Model to simulate an answer (*hypothetical* answer) to a question.
Such answer is [embedded](https://cheshire-cat-ai.github.io/docs/conceptual/llm/#embedding-model)
and used
to recall relevant context from the [vector memories](https://cheshire-cat-ai.github.io/docs/conceptual/memory/vector_memory/).HyDE is beneficial in Question-Answering tasks.
The underlying idea is that using the embedded *hypothetical* answer in a vector similarity search would lead to better results
rather than using the embedded question itself.> **Warning**
> When this plugin is enabled, the Cat makes and additional call to the language model API.