mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(improvement)(project) Remove unnecessary logs and remove redundant utility classes in the Dockerfile (#1306)
This commit is contained in:
@@ -4,9 +4,10 @@ import dev.langchain4j.inmemory.spring.InMemoryEmbeddingStoreFactory;
|
||||
import dev.langchain4j.store.embedding.EmbeddingStore;
|
||||
import dev.langchain4j.store.embedding.EmbeddingStoreFactory;
|
||||
import dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore;
|
||||
import java.util.Objects;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@Slf4j
|
||||
public class ChromaEmbeddingStoreFactory implements EmbeddingStoreFactory {
|
||||
|
||||
@@ -27,7 +28,7 @@ public class ChromaEmbeddingStoreFactory implements EmbeddingStoreFactory {
|
||||
.timeout(storeProperties.getTimeout())
|
||||
.build();
|
||||
} catch (Exception e) {
|
||||
log.error("Failed to create ChromaEmbeddingStore,collectionName:{}"
|
||||
log.debug("Failed to create ChromaEmbeddingStore,collectionName:{}"
|
||||
+ ", fallback to the default InMemoryEmbeddingStore method。",
|
||||
collectionName, e.getMessage());
|
||||
}
|
||||
|
||||
@@ -12,17 +12,6 @@ RUN apt-get update && \
|
||||
apt-get install -y default-mysql-client unzip && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install the vim editor.
|
||||
RUN apt-get update && \
|
||||
apt-get install -y vim && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Update the package list and install iputils-ping.
|
||||
RUN apt-get update && apt-get install -y iputils-ping
|
||||
|
||||
# 更新包列表并安装 dnsutils 包
|
||||
RUN apt-get update && apt-get install -y dnsutils
|
||||
|
||||
# Copy the supersonic standalone zip file into the container
|
||||
COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user