[BugFix] search method in app (#1092)
Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
@@ -254,13 +254,7 @@ class App(EmbedChain):
|
|||||||
)
|
)
|
||||||
result = []
|
result = []
|
||||||
for c in context:
|
for c in context:
|
||||||
result.append(
|
result.append({"context": c[0], "metadata": c[1]})
|
||||||
{
|
|
||||||
"context": c[0],
|
|
||||||
"source": c[1],
|
|
||||||
"document_id": c[2],
|
|
||||||
}
|
|
||||||
)
|
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
# Make API call to the backend to get the results
|
# Make API call to the backend to get the results
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "embedchain"
|
name = "embedchain"
|
||||||
version = "0.1.49"
|
version = "0.1.50"
|
||||||
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
|
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
|
||||||
authors = [
|
authors = [
|
||||||
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
||||||
|
|||||||
Reference in New Issue
Block a user