Skip to content

Commit

Permalink
fix: disable test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Sep 30, 2024
1 parent 6b6ab8b commit dc50e64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ The project uses Spring AI to turn questions about books into a rest function ca
### Generating code
The project uses Spring AI to generate test classes. To do that the class to test is provided and the classes the class to test depends on. A test example class can also be provided. The ollama based AI/LLM then gets a prompt with all the information and generates a draft of the source of the test class.

### Generating book summaries
The project uses Spring AI to generate summaries of books. To generate the summaries the chapter headings and the heading after the last chapter have to be provided. Then summaries of the chapters in form of bullet points are generated. A book summary is created of the chapter summaries.

## Articles
* [Using Spring AI with LLMs to generate Java tests](https://angular2guy.wordpress.com/2024/07/15/using-spring-ai-with-llms-to-generate-code/)
* [Questioning an Image Database with local AI/LLM on Ollama and Spring AI](https://angular2guy.wordpress.com/2024/05/17/questioning-an-image-database-with-ai-llm-and-spring-ai/)
Expand All @@ -42,6 +45,7 @@ The project uses Spring AI to generate test classes. To do that the class to tes
5. It displays the results of the rest api with parameters based on to question.
6. It displays the results of the questions to the image database.
7. It generates tests for sources in public Github repositories
8. It generates book summaries of epub of pdf books.

## Mission Statement
The project shows howto use Spring AI to generate answers based on a provided set of documents with a link to the source. The Angular frontend provides the user interface for the backend and shows the responses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class BookImportComponent {
.map((v, index) => chapterFormArray.at(index) as FormGroup)
.map(chapterFg => ({title: chapterFg.controls[FormGroupKey.chapterHeading].value } as ChapterHeading));
// for testing only
chapters = this.frankensteinChapters();
//chapters = this.frankensteinChapters();
formData.append('book', this.bookForm.controls[FormGroupKey.file].value)
formData.append('chapters', JSON.stringify(chapters));

Expand Down

0 comments on commit dc50e64

Please sign in to comment.