Skip to content

MS Entra authentication #448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
428ab9a
MS Entra authentication
Mar 14, 2024
14b4ca5
Entra properties
Mar 15, 2024
ffa40fe
code refactor
Mar 15, 2024
70a7845
Merge remote-tracking branch 'upstream/main'
Mar 15, 2024
9b7aa99
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Mar 17, 2024
36ab2c9
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Mar 19, 2024
027430e
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Mar 27, 2024
22e25f0
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Apr 8, 2024
7c216a1
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Apr 16, 2024
9cb2415
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Apr 18, 2024
b23757c
Merge branch 'main' of https://github.com/spring-projects/spring-ai
May 19, 2024
a2a8969
merge
williamspindox May 20, 2024
0ca12f7
Merge branch 'main' of https://github.com/spring-projects/spring-ai
May 20, 2024
3eff86b
spring-javaformat:apply
May 20, 2024
d7786c7
Merge branch 'main' of https://github.com/spring-projects/spring-ai
May 24, 2024
1cb3f49
Merge branch 'main' of https://github.com/spring-projects/spring-ai
May 24, 2024
3c2345b
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Jun 3, 2024
ead3711
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Jul 3, 2024
3fe103d
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Jul 26, 2024
ee9b28a
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Jul 29, 2024
9ef0bc5
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Jul 29, 2024
7a1c9a2
Merge branch 'main' of https://github.com/spring-projects/spring-ai
Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions document-readers/tika-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers-standard-package</artifactId>
<version>${tika.version}</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.springframework.ai.embedding.EmbeddingRequest;
import org.springframework.ai.embedding.EmbeddingResponse;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.Resource;
import org.springframework.util.Assert;
Expand All @@ -61,11 +62,11 @@ public class TransformersEmbeddingModel extends AbstractEmbeddingModel implement
private static final Log logger = LogFactory.getLog(TransformersEmbeddingModel.class);

// ONNX tokenizer for the all-MiniLM-L6-v2 generative
public final static String DEFAULT_ONNX_TOKENIZER_URI = "https://raw.githubusercontent.com/spring-projects/spring-ai/main/models/spring-ai-transformers/src/main/resources/onnx/all-MiniLM-L6-v2/tokenizer.json";
public final static String DEFAULT_ONNX_TOKENIZER_URI = "classpath:onnx/all-MiniLM-L6-v2/tokenizer.json";

// ONNX generative for all-MiniLM-L6-v2 pre-trained transformer:
// https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
public final static String DEFAULT_ONNX_MODEL_URI = "https://github.com/spring-projects/spring-ai/raw/main/models/spring-ai-transformers/src/main/resources/onnx/all-MiniLM-L6-v2/model.onnx";
public final static String DEFAULT_ONNX_MODEL_URI = "classpath:onnx/all-MiniLM-L6-v2/model.onnx";

public final static String DEFAULT_MODEL_OUTPUT_NAME = "last_hidden_state";

Expand Down Expand Up @@ -354,6 +355,9 @@ private List<Double> toDoubleList(float[] floats) {
}

private static Resource toResource(String uri) {
if (uri.startsWith("classpath:")) {
return new ClassPathResource(uri.substring("classpath:".length()));
}
return new DefaultResourceLoader().getResource(uri);
}

Expand Down