Skip to content

Commit

Permalink
deploy: fbdcd1c
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 10, 2024
1 parent def2195 commit 3425f73
Show file tree
Hide file tree
Showing 193 changed files with 3,457 additions and 123 deletions.
Binary file added .doctrees/contributor/contribute_to_code.doctree
Binary file not shown.
Binary file modified .doctrees/contributor/contribute_to_document.doctree
Binary file not shown.
Binary file added .doctrees/contributor/contribution.doctree
Binary file not shown.
Binary file removed .doctrees/contributor/contribution_guide.doctree
Binary file not shown.
Binary file modified .doctrees/contributor/index.doctree
Binary file not shown.
Binary file added .doctrees/contributor/version_control.doctree
Binary file not shown.
Binary file modified .doctrees/developer_notes/text_splitter.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/get_started/community.doctree
Binary file not shown.
Binary file modified .doctrees/get_started/installation.doctree
Binary file not shown.
Binary file removed .doctrees/get_started/version_control.doctree
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
14 changes: 14 additions & 0 deletions _modules/components/agent/react.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/data_process/data_components.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
34 changes: 22 additions & 12 deletions _modules/components/data_process/text_splitter.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -588,22 +602,18 @@ <h1>Source code for components.data_process.text_splitter</h1><div class="highli
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">()</span>

<span class="bp">self</span><span class="o">.</span><span class="n">split_by</span> <span class="o">=</span> <span class="n">split_by</span>
<span class="k">assert</span> <span class="p">(</span>
<span class="n">split_by</span> <span class="ow">in</span> <span class="n">SEPARATORS</span>
<span class="p">),</span> <span class="sa">f</span><span class="s2">&quot;Invalid options for split_by. You must select from </span><span class="si">{</span><span class="nb">list</span><span class="p">(</span><span class="n">SEPARATORS</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span><span class="si">}</span><span class="s2">.&quot;</span>
<span class="k">if</span> <span class="n">split_by</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">SEPARATORS</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Invalid options for split_by. You must select from </span><span class="si">{</span><span class="nb">list</span><span class="p">(</span><span class="n">SEPARATORS</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span><span class="si">}</span><span class="s2">.&quot;</span><span class="p">)</span>

<span class="k">assert</span> <span class="p">(</span>
<span class="n">chunk_overlap</span> <span class="o">&lt;</span> <span class="n">chunk_size</span>
<span class="p">),</span> <span class="sa">f</span><span class="s2">&quot;chunk_overlap can&#39;t be larger than or equal to chunk_size. Received chunk_size: </span><span class="si">{</span><span class="n">chunk_size</span><span class="si">}</span><span class="s2">, chunk_overlap: </span><span class="si">{</span><span class="n">chunk_overlap</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="k">if</span> <span class="n">chunk_overlap</span> <span class="o">&gt;=</span> <span class="n">chunk_size</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;chunk_overlap can&#39;t be larger than or equal to chunk_size. Received chunk_size: </span><span class="si">{</span><span class="n">chunk_size</span><span class="si">}</span><span class="s2">, chunk_overlap: </span><span class="si">{</span><span class="n">chunk_overlap</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>

<span class="k">assert</span> <span class="p">(</span>
<span class="n">chunk_size</span> <span class="o">&gt;</span> <span class="mi">0</span>
<span class="p">),</span> <span class="sa">f</span><span class="s2">&quot;chunk_size must be greater than 0. Received value: </span><span class="si">{</span><span class="n">chunk_size</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="k">if</span> <span class="n">chunk_size</span> <span class="o">&lt;=</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;chunk_size must be greater than 0. Received value: </span><span class="si">{</span><span class="n">chunk_size</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">chunk_size</span> <span class="o">=</span> <span class="n">chunk_size</span>

<span class="k">assert</span> <span class="p">(</span>
<span class="n">chunk_overlap</span> <span class="o">&gt;=</span> <span class="mi">0</span>
<span class="p">),</span> <span class="sa">f</span><span class="s2">&quot;chunk_overlap must be non-negative. Received value: </span><span class="si">{</span><span class="n">chunk_overlap</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="k">if</span> <span class="n">chunk_overlap</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;chunk_overlap must be non-negative. Received value: </span><span class="si">{</span><span class="n">chunk_overlap</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">chunk_overlap</span> <span class="o">=</span> <span class="n">chunk_overlap</span>

<span class="bp">self</span><span class="o">.</span><span class="n">batch_size</span> <span class="o">=</span> <span class="n">batch_size</span>
Expand Down
14 changes: 14 additions & 0 deletions _modules/components/memory/memory.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/model_client/anthropic_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/model_client/cohere_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/model_client/google_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/model_client/groq_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/model_client/openai_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/model_client/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/output_parsers/outputs.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/retriever/bm25_retriever.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
14 changes: 14 additions & 0 deletions _modules/components/retriever/faiss_retriever.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down Expand Up @@ -296,6 +303,13 @@
</a>
</li>


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../contributor/index.html">
For Contributors
</a>
</li>

</ul>
</nav></div>

Expand Down
Loading

0 comments on commit 3425f73

Please sign in to comment.