Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
markpollack committed Aug 21, 2023
1 parent 8b0ad1a commit e3da80d
Show file tree
Hide file tree
Showing 18 changed files with 133 additions and 16 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ Taking inspiration from these libraries, the Spring AI project aims to provide a

The following is a feature list resembling those found in the LangChain documentation.
The initial features lay the foundation, with subsequent, more complex features building upon them.
Implemented features are linked to the Spring AI documentation.
Features without links are part of our future roadmap.

You can find more details in the [Reference Documentation](https://docs.spring.io/spring-ai/reference/)

Not all features listed here are implemented yet, but a good amount are :)


### Model I/O

Expand Down Expand Up @@ -82,7 +85,7 @@ It's getting a bit funky, isn't it?
## Project Links

* [Issues](https://github.com/spring-projects-experimental/spring-ai/issues)
* Documentation
* [Documentation](https://docs.spring.io/spring-ai/reference/)
* [JavaDocs](https://docs.spring.io/spring-ai/docs/current-SNAPSHOT/)

## Building
Expand Down
14 changes: 11 additions & 3 deletions spring-ai-docs/src/main/antora/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
* xref:index.adoc[Overview]
* xref:concepts.adoc[AI Concepts]
* xref:getting-started.adoc[Getting Started]
* xref:prompt/index.adoc[]
* xref:client/index.adoc[]
** xref:client/usage.adoc[]
* xref:api/index.adoc[]
** xref:api/models.adoc[]
** xref:api/prompt.adoc[]
** xref:api/prompt-template.adoc[]
** xref:api/output-parser.adoc[]
** xref:api/chains.adoc[]
** xref:api/dataloaders.adoc[]
** xref:api/splitters.adoc[]
** xref:api/embeddings.adoc[]
** xref:api/vectordbs.adoc[]
** xref:api/evaluators.adoc[]
* Appendices
** xref:glossary.adoc[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Chains

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Data Loaders

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Embeddings

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Evaluators

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
= Spring AI API

== Introduction

The following sections introduce each part of the API.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Models

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Output Parsers

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Prompt Templates

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Prompt

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Splitters

TBD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= Vector Databases

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,14 @@ Data Loaders and Vector Database are the fundamental building blocks for solving

=== Data Loaders

TBD
=== Splitters

=== Embeddings

=== Vector Databases

TBD

== Evaluating AI responses

Effectively evaluating the output of an AI system in response to user requests is very important to ensuring accuracy and usefulness of the final application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,84 @@ export SPRING_AI_AZURE_OPENAI_API_KEY=<INSERT KEY HERE>
export SPRING_AI_AZURE_OPENAI_ENDPOINT=<INSERT ENDPOINT URL HERE>
----

== Spring CLI

Download the latest https://github.com/spring-projects-experimental/spring-cli/releases[Spring CLI Release]

and follow the https://docs.spring.io/spring-cli/reference/installation.html#_setting_up_your_path_or_alias[instructions] to add `spring` to your `PATH`.

Create a simple AI application

* For OpenAI

```shell
spring boot new ai
```

or

* For Azure OpenAI

```shell
spring boot new ai-azure
```

You can also `ADD` the same simple AI application to your current project using

* For OpenAI
```shell
spring boot add ai
```

or

* For Azure OpenAI
```shell
spring boot add ai-azure
```

There is a project catalog available for Azure OpenAI that covers more functionality.
Add the catalog by running the command

* For Azure Open AI

```shell
spring project-catalog add ai-azure
```

Now you have the following projects that you can use to create a new project using the `spring boot new` command or add to your existing project using the `spring boot add` command.

```shell
spring project list

├──────────────────────────┼───────────────┼────────────────────────────────────────────────────────────────────┼────────┼───────────────┤
│ai-azure-hello-world │AI - Hello, │https://github.com/rd-1-2022/ai-azure-openai-helloworld │ai-azure│[java-17, │
│ │World │ │ │boot-3.1.x, ai,│
│ │ │ │ │azure, web] │
├──────────────────────────┼───────────────┼────────────────────────────────────────────────────────────────────┼────────┼───────────────┤
│ai-azure-prompt-templating│AI - Prompt │https://github.com/rd-1-2022/ai-azure-prompt-template │ai-azure│[java-17, │
│ │Templating │ │ │boot-3.1.x, ai,│
│ │ │ │ │azure, prompt │
│ │ │ │ │templating] │
├──────────────────────────┼───────────────┼────────────────────────────────────────────────────────────────────┼────────┼───────────────┤
│ai-azure-prompt-roles │AI - Prompt │https://github.com/rd-1-2022/ai-azure-openai-prompt-roles │ai-azure│[java-17, │
│ │Templating │ │ │boot-3.1.x, ai,│
│ │ │ │ │azure, prompt │
│ │ │ │ │roles] │
├──────────────────────────┼───────────────┼────────────────────────────────────────────────────────────────────┼────────┼───────────────┤
│ai-azure-stuff-prompt │AI - Stuff the │https://github.com/rd-1-2022/ai-azure-stuff-prompt │ai-azure│[java-17, │
│ │prompt │ │ │boot-3.1.x, ai,│
│ │ │ │ │azure, prompt │
│ │ │ │ │stuff] │
├──────────────────────────┼───────────────┼────────────────────────────────────────────────────────────────────┼────────┼───────────────┤
│ai-azure-prompt-rag │AI - Retrieval │https://github.com/rd-1-2022/ai-azure-retrieval-augmented-generation│ai-azure│[java-17, │
│ │Augmented │ │ │boot-3.1.x, ai,│
│ │Generation │ │ │azure, │
│ │ │ │ │retrieval] │
└──────────────────────────┴───────────────┴────────────────────────────────────────────────────────────────────┴────────┴───────────────┘
```


== Sample Projects

You can clone these projects on GitHub to get started.
Expand Down

This file was deleted.

0 comments on commit e3da80d

Please sign in to comment.