feat #565: add vector knowledge ingestion demo
This commit is contained in:
@@ -109,6 +109,23 @@ class GuidedFlowTemplateTest {
|
||||
assertThat(sse).contains("Instruction / parameter mapping").contains("bearerToken");
|
||||
}
|
||||
|
||||
@Test
|
||||
void vectorKnowledgePageShowsIngestPermissionAndSearchFlow() throws IOException {
|
||||
String vector = template("vector-knowledge.html");
|
||||
String result = template("fragments/vector-search-result.html");
|
||||
|
||||
assertThat(vector)
|
||||
.contains("문서 등록 → 청킹 → 임베딩 → 태그 저장")
|
||||
.contains("ALLOW TAG SPRING_BOOT")
|
||||
.contains("DENY TAG ORDS")
|
||||
.contains("권한 적용 벡터 검색")
|
||||
.contains("/vector-knowledge/ingest")
|
||||
.contains("/vector-knowledge/search");
|
||||
assertThat(result)
|
||||
.contains("TECH_TAG")
|
||||
.contains("검색 기술 상세 보기");
|
||||
}
|
||||
|
||||
private String template(String relativePath) throws IOException {
|
||||
return Files.readString(Path.of("src/main/resources/templates").resolve(relativePath));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user