Skip to content

Commit

Permalink
[Docs] add docs for getting the list of added data sources (#1209)
Browse files Browse the repository at this point in the history
Co-authored-by: Deven Patel <[email protected]>
  • Loading branch information
deven298 and Deven Patel authored Jan 25, 2024
1 parent 446d097 commit 75896b6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
33 changes: 33 additions & 0 deletions docs/api-reference/app/get.mdx
Original file line number Diff line number Diff line change
@@ -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'
# }
# ]
```
5 changes: 3 additions & 2 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 75896b6

Please sign in to comment.