Skip to content

Commit 970e3b3

Browse files
author
Jacky Koh
committed
Merge branch 'master' of https://github.com/vector-ai/vectorai
2 parents 65075f7 + 2f7cf24 commit 970e3b3

File tree

8 files changed

+51
-9
lines changed

8 files changed

+51
-9
lines changed

docs/_static/basic.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ div.code-block-caption code {
764764
}
765765

766766
table.highlighttable td.linenos,
767+
span.linenos,
767768
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
768769
user-select: none;
769770
}

docs/_static/doctools.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ var Documentation = {
285285
initOnKeyListeners: function() {
286286
$(document).keydown(function(event) {
287287
var activeElementType = document.activeElement.tagName;
288-
// don't navigate when in search box or textarea
288+
// don't navigate when in search box, textarea, dropdown or button
289289
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
290-
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
290+
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
291+
&& !event.shiftKey) {
291292
switch (event.keyCode) {
292293
case 37: // left
293294
var prevHref = $('link[rel="prev"]').prop('href');

docs/_static/searchtools.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ var Search = {
5959
_pulse_status : -1,
6060

6161
htmlToText : function(htmlString) {
62-
var htmlElement = document.createElement('span');
63-
htmlElement.innerHTML = htmlString;
64-
$(htmlElement).find('.headerlink').remove();
65-
docContent = $(htmlElement).find('[role=main]')[0];
62+
var virtualDocument = document.implementation.createHTMLDocument('virtual');
63+
var htmlElement = $(htmlString, virtualDocument);
64+
htmlElement.find('.headerlink').remove();
65+
docContent = htmlElement.find('[role=main]')[0];
6666
if(docContent === undefined) {
6767
console.warn("Content block not found. Sphinx search tries to obtain it " +
6868
"via '[role=main]'. Could you check your theme or template.");

docs/client.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,23 @@ <h2>Client<a class="headerlink" href="#id1" title="Permalink to this headline">
900900
</dl>
901901
</dd></dl>
902902

903+
<dl class="py method">
904+
<dt id="vectorai.client.ViCollectionClient.create_filter_query">
905+
<code class="sig-name descname">create_filter_query</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">collection_name</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">field</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">filter_type</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">filter_values</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>List<span class="p">[</span>str<span class="p">]</span><span class="p">, </span>str<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#vectorai.client.ViCollectionClient.create_filter_query" title="Permalink to this definition"></a></dt>
906+
<dd><p>Filter type can be one of contains/exact_match/categories/exists/insert_date/numeric_range
907+
Filter types can be one of:
908+
contains: Field must contain this specific string. Not case sensitive.
909+
exact_match: Field must have an exact match
910+
categories: Matches entire field
911+
exists: If field exists in document
912+
&gt;= / &gt; / &lt; / &lt;= : Larger than or equal to / Larger than / Smaller than / Smaller than or equal to
913+
These, however, can only be applied on numeric/date values. Check collection_schema.</p>
914+
<p>Args:
915+
collection_name: The name of the collection
916+
field: The field to filter on
917+
filter_type: One of contains/exact_match/categories/&gt;=/&gt;/&lt;=/&lt;.</p>
918+
</dd></dl>
919+
903920
<dl class="py method">
904921
<dt id="vectorai.client.ViCollectionClient.delete_by_id">
905922
<code class="sig-name descname">delete_by_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">collection_name</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">document_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#vectorai.client.ViCollectionClient.delete_by_id" title="Permalink to this definition"></a></dt>

docs/genindex.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,14 @@ <h2 id="C">C</h2>
349349
<li><a href="client.html#vectorai.client.ViCollectionClient.cluster_facets">(vectorai.client.ViCollectionClient method)</a>
350350
</li>
351351
</ul></li>
352-
</ul></td>
353-
<td style="width: 33%; vertical-align: top;"><ul>
354352
<li><a href="cluster.html#vectorai.api.cluster.ViClusterClient.clustering_job">clustering_job() (vectorai.api.cluster.ViClusterClient method)</a>
355353

356354
<ul>
357355
<li><a href="client.html#vectorai.client.ViCollectionClient.clustering_job">(vectorai.client.ViCollectionClient method)</a>
358356
</li>
359357
</ul></li>
358+
</ul></td>
359+
<td style="width: 33%; vertical-align: top;"><ul>
360360
<li><a href="read.html#vectorai.api.read.ViReadAPIClient.collection_schema">collection_schema() (vectorai.api.read.ViReadAPIClient method)</a>
361361

362362
<ul>
@@ -381,6 +381,12 @@ <h2 id="C">C</h2>
381381

382382
<ul>
383383
<li><a href="client.html#vectorai.client.ViCollectionClient.create_collection_from_document">(vectorai.client.ViCollectionClient method)</a>
384+
</li>
385+
</ul></li>
386+
<li><a href="client.html#vectorai.client.ViCollectionClient.create_filter_query">create_filter_query() (vectorai.client.ViCollectionClient method)</a>
387+
388+
<ul>
389+
<li><a href="read.html#vectorai.read.ViReadClient.create_filter_query">(vectorai.read.ViReadClient method)</a>
384390
</li>
385391
</ul></li>
386392
</ul></td>

docs/objects.inv

27 Bytes
Binary file not shown.

docs/read.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,23 @@ <h2>Read<a class="headerlink" href="#id1" title="Permalink to this headline">¶<
675675
</div>
676676
</dd></dl>
677677

678+
<dl class="py method">
679+
<dt id="vectorai.read.ViReadClient.create_filter_query">
680+
<code class="sig-name descname">create_filter_query</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">collection_name</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">field</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">filter_type</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">filter_values</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>List<span class="p">[</span>str<span class="p">]</span><span class="p">, </span>str<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#vectorai.read.ViReadClient.create_filter_query" title="Permalink to this definition"></a></dt>
681+
<dd><p>Filter type can be one of contains/exact_match/categories/exists/insert_date/numeric_range
682+
Filter types can be one of:
683+
contains: Field must contain this specific string. Not case sensitive.
684+
exact_match: Field must have an exact match
685+
categories: Matches entire field
686+
exists: If field exists in document
687+
&gt;= / &gt; / &lt; / &lt;= : Larger than or equal to / Larger than / Smaller than / Smaller than or equal to
688+
These, however, can only be applied on numeric/date values. Check collection_schema.</p>
689+
<p>Args:
690+
collection_name: The name of the collection
691+
field: The field to filter on
692+
filter_type: One of contains/exact_match/categories/&gt;=/&gt;/&lt;=/&lt;.</p>
693+
</dd></dl>
694+
678695
</dd></dl>
679696

680697
</div>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)