Skip to content

Fail to Compile Main Branch #8

@zengyr49

Description

@zengyr49

on "main" branch

sentences like:
ai/spring/demo/ai/playground/Application.java:46
vectorStore.similaritySearch("Cancelling Bookings").forEach(doc -> { logger.info("Similar Document: {}", doc.getContents()); });
and
ai/spring/demo/ai/playground/services/CustomerSupportAssistant.java:63
new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults()), // RAG

will be marked by IDEA as no such method

I think these usages should be modified in this project.

doc.getContents() should be doc.getText()
SearchRequest.defaults() should be SearchRequest.builder().build()

if these modifications are wrong, please type your correction below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions