Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Building with language models course

        Normalized vector search

        Opening Building with language models
        Your turn

        Vector databases and search practice

        A vector search compares a query representation with stored representations. Cosine similarity measures their direction after accounting for length. A zero-length vector needs an explicit rule, and equal scores need a stable tie-breaker if the result must be reproducible.

        In a fictional handbook index, two chunks have the same score. Order them by the required stable source identity rather than whichever dictionary entry happens to appear first. Keep the current tenant and revision filter ahead of the ranking so another customer’s similar document cannot enter the candidate set.

        Database and ranking boundaries

        A vector database also manages stored records and operational concerns; this notebook does not install one. The fixture vectors are deterministic teaching values, not learned embeddings. They let you test ranking code but cannot establish semantic retrieval quality.

        Hybrid search combines different retrieval signals, such as text relevance and vector similarity. The official retrieval guide, checked November 14, 2026, describes hosted filtering and ranking options. This lesson does not implement that full hosted service or a production hybrid engine. Practice tenant filtering and RAG evidence next.

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.