Skip to content

Commit

Permalink
chore: optimize KnowledgeStore when bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jan 29, 2025
1 parent e0fdb6f commit 5cf6677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agents/anda_bot/nitro_enclave/amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN mv linux-amd64/dnsproxy ./ && chmod +x dnsproxy
RUN wget -O ic_tee_nitro_gateway https://github.com/ldclabs/ic-tee/releases/download/v0.2.11/ic_tee_nitro_gateway
RUN chmod +x ic_tee_nitro_gateway

RUN wget -O anda_bot https://github.com/ldclabs/anda/releases/download/v0.3.3/anda_bot
RUN wget -O anda_bot https://github.com/ldclabs/anda/releases/download/v0.3.4/anda_bot
RUN chmod +x anda_bot

FROM --platform=linux/amd64 debian:bookworm-slim AS runtime
Expand Down
2 changes: 1 addition & 1 deletion agents/anda_bot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ async fn connect_knowledge_store(
let ks =
KnowledgeStore::init(&mut store, namespace, model.ndims() as u16, Some(1024 * 10)).await?;
log::info!(target: LOG_TARGET, "knowledge_store ks: {:?}", ks.name());
ks.create_index().await?;
ks.optimize().await?;
Ok(ks)
}

Expand Down

0 comments on commit 5cf6677

Please sign in to comment.