matt HOFFNER commited on
Commit
3bbf649
β€’
1 Parent(s): 5b87497

tweak 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 = 3;
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({