Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[Docs] add docs for getting the list of added data sources (#1209)

Deven Patel75896b647fa2
diff --git a/docs/api-reference/app/get.mdx b/docs/api-reference/app/get.mdx
new file mode 100644
index 000000000..252c78508
--- /dev/null
+++ b/docs/api-reference/app/get.mdx
@@ -0,0 +1,33 @@
+---
+title: 📄 get
+---
+
+## Get data sources
+
+`get_data_sources()` returns a list of all the data sources added in the app.
+
+
+### Usage
+
+```python
+from embedchain import App
+
+app = App()
+
+app.add("https://www.forbes.com/profile/elon-musk")
+app.add("https://en.wikipedia.org/wiki/Elon_Musk")
+
+data_sources = app.get_data_sources()
+# [
+# {
+# 'data_type': 'web_page',
+# 'data_value': 'https://en.wikipedia.org/wiki/Elon_Musk',
+# 'metadata': 'null'
+# },
+# {
+# 'data_type': 'web_page',
+# 'data_value': 'https://www.forbes.com/profile/elon-musk',
+# 'metadata': 'null'
+# }
+# ]
+```
\ No newline at end of file
diff --git a/docs/mint.json b/docs/mint.json
index 77db11a3e..f8ed14593 100644
--- a/docs/mint.json
+++ b/docs/mint.json
@@ -207,10 +207,11 @@
"api-reference/app/query",
"api-reference/app/chat",
"api-reference/app/search",
+ "api-reference/app/get",
+ "api-reference/app/evaluate",
"api-reference/app/deploy",
"api-reference/app/reset",
- "api-reference/app/delete",
- "api-reference/app/evaluate"
+ "api-reference/app/delete"
]
},
"api-reference/store/openai-assistant",