matthoffner commited on
Commit
d87145a
β€’
1 Parent(s): 2a6e164

Experimenting with vector store size

Browse files
pages/api/functions/vector-store.ts CHANGED
@@ -3,7 +3,7 @@ import { MemoryVectorStore } from 'langchain/vectorstores/memory';
3
  import { HuggingFaceTransformersEmbeddings } from "langchain/embeddings/hf_transformers";
4
 
5
  const DEFAULT_CHUNK_SIZE = 1000;
6
- const VECTOR_STORE_SIZE = 10;
7
  const textSplitter = new RecursiveCharacterTextSplitter({ chunkSize: DEFAULT_CHUNK_SIZE });
8
 
9
  const model = new HuggingFaceTransformersEmbeddings({
 
3
  import { HuggingFaceTransformersEmbeddings } from "langchain/embeddings/hf_transformers";
4
 
5
  const DEFAULT_CHUNK_SIZE = 1000;
6
+ const VECTOR_STORE_SIZE = 5;
7
  const textSplitter = new RecursiveCharacterTextSplitter({ chunkSize: DEFAULT_CHUNK_SIZE });
8
 
9
  const model = new HuggingFaceTransformersEmbeddings({