Skip to content

HttpResponse Error: Unknown field 'embedding' in vector fields listΒ #501

@pamelafox

Description

@pamelafox

If you see this error pop up, that means that you initially ran this sample before we introduced vector search and you created a Cognitive search index that didn't have an 'embedding' field. This sample now presumes an index that has an 'embedding' field, so it errors when it sees a search index without one.

Two possible fixes:

  • Delete your index entirely and re-run prepdocs.py
  • Change the retrieval mode from Hybrid to Text in Chat.tsx, if you don't wish to use vectors:
const [retrievalMode, setRetrievalMode] = useState<RetrievalMode>(RetrievalMode.Text);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions