File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 runs-on : ${{ matrix.os }}
3636 strategy :
3737 matrix :
38- os : [ubuntu-latest, macos-13 ]
38+ os : [ubuntu-latest, macos-15-intel ]
3939
4040 steps :
4141 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ def upload_to_chromadb(
5353 embeddings_instance : Embeddings
5454 if hf_model is None : # Use OpenAI
5555 embeddings_instance = OpenAIEmbeddings (
56- chunk_size = 500 ,
56+ chunk_size = 400 ,
5757 show_progress_bar = True ,
5858 )
5959 elif hf_model .startswith ("openai/text-embedding-" ):
6060 embeddings_instance = OpenAIEmbeddings (
6161 model = hf_model [len ("openai/" ) :],
62- chunk_size = 500 ,
62+ chunk_size = 400 ,
6363 show_progress_bar = True ,
6464 )
6565 elif "HUGGINGFACEHUB_API_TOKEN" in os .environ :
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ def upload_to_chromadb(
4444 print ("Using OpenAI embeddings" )
4545 embeddings_instance = OpenAIEmbeddings (
4646 model = "text-embedding-3-large" ,
47- chunk_size = 800 ,
47+ chunk_size = 500 ,
4848 show_progress_bar = True ,
4949 )
5050 elif hf_model .startswith ("openai/text-embedding-" ):
5151 embeddings_instance = OpenAIEmbeddings (
5252 model = hf_model [len ("openai/" ) :],
53- chunk_size = 800 ,
53+ chunk_size = 500 ,
5454 show_progress_bar = True ,
5555 )
5656 elif "HUGGINGFACEHUB_API_TOKEN" in os .environ :
You can’t perform that action at this time.
0 commit comments