瀏覽代碼

[BugFix] search method in app (#1092)

Co-authored-by: Deven Patel <deven298@yahoo.com>
Deven Patel 1 年之前
父節點
當前提交
4f70fea6df
共有 2 個文件被更改,包括 2 次插入8 次删除
  1. 1 7
      embedchain/app.py
  2. 1 1
      pyproject.toml

+ 1 - 7
embedchain/app.py

@@ -254,13 +254,7 @@ class App(EmbedChain):
             )
             result = []
             for c in context:
-                result.append(
-                    {
-                        "context": c[0],
-                        "source": c[1],
-                        "document_id": c[2],
-                    }
-                )
+                result.append({"context": c[0], "metadata": c[1]})
             return result
         else:
             # Make API call to the backend to get the results

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "embedchain"
-version = "0.1.49"
+version = "0.1.50"
 description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
 authors = [
     "Taranjeet Singh <taranjeet@embedchain.ai>",