Skip to content

Commit

Permalink
Move universe check to index internals (#4818)
Browse files Browse the repository at this point in the history
* Move universe check to index internals

* bump pathway

GitOrigin-RevId: 21a6aa56233cb72f7c3a992f893f1f6651a3df14
  • Loading branch information
janchorowski authored and Manul from Pathway committed Oct 19, 2023
1 parent 59aafd5 commit 42e915d
Show file tree
Hide file tree
Showing 6 changed files with 903 additions and 883 deletions.
2 changes: 1 addition & 1 deletion examples/pipelines/contextful/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run(

query_context = query + index.get_nearest_items(
query.vector, k=3, collapse_rows=True
).select(documents_list=pw.this.doc).promise_universe_is_equal_to(query)
).select(documents_list=pw.this.doc)

@pw.udf
def build_prompt(documents, query):
Expand Down
2 changes: 1 addition & 1 deletion examples/pipelines/contextful_s3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run(

query_context = query + index.get_nearest_items(
query.vector, k=3, collapse_rows=True
).select(documents_list=pw.this.doc).promise_universe_is_equal_to(query)
).select(documents_list=pw.this.doc)

@pw.udf
def build_prompt(documents, query):
Expand Down
2 changes: 1 addition & 1 deletion examples/pipelines/local/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run(

query_context = query + index.get_nearest_items(
query.vector, k=3, collapse_rows=True
).select(documents_list=pw.this.doc).promise_universe_is_equal_to(query)
).select(documents_list=pw.this.doc)

@pw.udf
def build_prompt(documents, query):
Expand Down
2 changes: 1 addition & 1 deletion examples/pipelines/unstructured/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def run(

query_context = query + index.get_nearest_items(
query.vector, k=3, collapse_rows=True
).select(documents_list=pw.this.chunk).promise_universe_is_equal_to(query)
).select(documents_list=pw.this.chunk)

@pw.udf
def build_prompt(documents, query):
Expand Down
Loading

0 comments on commit 42e915d

Please sign in to comment.