Skip to content

Commit

Permalink
Update to latest snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale committed Dec 21, 2024
1 parent e13f5df commit 0196ed1
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 494 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ Question answering with documents using different RAG flows (with Ollama and PGV
* **[Naive](https://github.com/ThomasVitale/llm-apps-java-spring-ai/tree/main/rag/rag-sequential/rag-naive)**
* **[Advanced](https://github.com/ThomasVitale/llm-apps-java-spring-ai/tree/main/rag/rag-sequential/rag-advanced)**

### ❔ Conditional RAG

* **[Conditional](https://github.com/ThomasVitale/llm-apps-java-spring-ai/tree/main/rag/rag-conditional)**

### 🌳 Branching RAG

* **[Branching](https://github.com/ThomasVitale/llm-apps-java-spring-ai/tree/main/rag/rag-branching)**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ String chatProviderOptions(String question) {
return chatClient
.prompt(question)
.options(OpenAiChatOptions.builder()
.withLogprobs(true)
.logprobs(true)
.build())
.call()
.content();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ String embedGenericOptions(String query) {
String embedProviderOptions(String query) {
logger.info("Embedding with provider options: {}", query);
var embeddings = embeddingModel.call(new EmbeddingRequest(List.of(query), OpenAiEmbeddingOptions.builder()
.withEncodingFormat("float")
.encodingFormat("float")
.build()))
.getResult().getOutput();
return "Size of the embedding vector: " + embeddings.length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class ImageController {
String image(String message) {
logger.info("Generating image: {}", message);
var imageResponse = imageModel.call(new ImagePrompt(message, ImageOptionsBuilder.builder()
.withHeight(1024)
.withWidth(1024)
.height(1024)
.width(1024)
.build()));
return imageResponse.getResult().getOutput().getUrl();
}
Expand Down
51 changes: 0 additions & 51 deletions rag/rag-conditional/README.md

This file was deleted.

51 changes: 0 additions & 51 deletions rag/rag-conditional/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

52 changes: 0 additions & 52 deletions rag/rag-conditional/src/main/resources/application.yml

This file was deleted.

42 changes: 0 additions & 42 deletions rag/rag-conditional/src/main/resources/documents/story1.md

This file was deleted.

Loading

0 comments on commit 0196ed1

Please sign in to comment.