contextual-retrieval-by-anthropic Contextual Retrieval solves this problem by prepending chunk-specific explanatory context to each chunk before embedding (“Contextual Embeddings”) and creating the BM25 index (“Contextual BM25”). Maintained by NeuralVulture on GitHub, where it has earned 28 stars from the community.