(improvement)(project) Remove unnecessary logs and remove redundant utility classes in the Dockerfile (#1306)

This commit is contained in:
lexluo09
2024-07-01 14:42:30 +08:00
committed by GitHub
parent da6ffdab27
commit da43f790c3
2 changed files with 3 additions and 13 deletions

View File

@@ -4,9 +4,10 @@ import dev.langchain4j.inmemory.spring.InMemoryEmbeddingStoreFactory;
import dev.langchain4j.store.embedding.EmbeddingStore; import dev.langchain4j.store.embedding.EmbeddingStore;
import dev.langchain4j.store.embedding.EmbeddingStoreFactory; import dev.langchain4j.store.embedding.EmbeddingStoreFactory;
import dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore; import dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore;
import java.util.Objects;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.util.Objects;
@Slf4j @Slf4j
public class ChromaEmbeddingStoreFactory implements EmbeddingStoreFactory { public class ChromaEmbeddingStoreFactory implements EmbeddingStoreFactory {
@@ -27,7 +28,7 @@ public class ChromaEmbeddingStoreFactory implements EmbeddingStoreFactory {
.timeout(storeProperties.getTimeout()) .timeout(storeProperties.getTimeout())
.build(); .build();
} catch (Exception e) { } catch (Exception e) {
log.error("Failed to create ChromaEmbeddingStore,collectionName:{}" log.debug("Failed to create ChromaEmbeddingStore,collectionName:{}"
+ ", fallback to the default InMemoryEmbeddingStore method。", + ", fallback to the default InMemoryEmbeddingStore method。",
collectionName, e.getMessage()); collectionName, e.getMessage());
} }

View File

@@ -12,17 +12,6 @@ RUN apt-get update && \
apt-get install -y default-mysql-client unzip && \ apt-get install -y default-mysql-client unzip && \
rm -rf /var/lib/apt/lists/* 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 the supersonic standalone zip file into the container
COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip . COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip .