Skip to main content

build_fact_embedding_text

Function build_fact_embedding_text 

Source
pub fn build_fact_embedding_text(
    category: &str,
    key: &str,
    value: &str,
) -> String
Expand description

Build a natural-language embedding text for a fact.

Instead of [project] inter_service: gRPC, this produces something like: "Project: inter-service communication technology is gRPC"

Natural language embeds much better against natural language queries like “What tech stack does my project use?”.