-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Visibility and formatting improvements (#2)
- Loading branch information
Showing
14 changed files
with
50 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...n/java/io/github/kszapsza/springairag/adapter/application/ApplicationStartupListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
package io.github.kszapsza.springairag.adapter.application; | ||
|
||
import io.github.kszapsza.springairag.adapter.db.realestate.RealEstateRepositoryFeeder; | ||
import io.github.kszapsza.springairag.domain.embedding.EmbeddingsFeeder; | ||
import io.github.kszapsza.springairag.domain.realestate.RealEstateFeeder; | ||
import org.springframework.boot.context.event.ApplicationReadyEvent; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.context.event.EventListener; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Profile("local") | ||
public class ApplicationStartupListener { | ||
class ApplicationStartupListener { | ||
|
||
private final EmbeddingsFeeder embeddingsFeeder; | ||
private final RealEstateRepositoryFeeder realEstateRepositoryFeeder; | ||
private final RealEstateFeeder realEstateFeeder; | ||
|
||
public ApplicationStartupListener( | ||
ApplicationStartupListener( | ||
EmbeddingsFeeder embeddingsFeeder, | ||
RealEstateRepositoryFeeder realEstateRepositoryFeeder) { | ||
RealEstateFeeder realEstateFeeder) { | ||
this.embeddingsFeeder = embeddingsFeeder; | ||
this.realEstateRepositoryFeeder = realEstateRepositoryFeeder; | ||
this.realEstateFeeder = realEstateFeeder; | ||
} | ||
|
||
@EventListener(ApplicationReadyEvent.class) | ||
public void onApplicationReady() { | ||
void onApplicationReady() { | ||
embeddingsFeeder.importEmbeddings(); | ||
realEstateRepositoryFeeder.feedDummyData(); | ||
realEstateFeeder.feedDummyData(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
.../main/java/io/github/kszapsza/springairag/adapter/llm/function/FunctionConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters