Skip to content

Commit

Permalink
feat(frontend)(api): add sharepoint datasoure (#61)
Browse files Browse the repository at this point in the history
Added implementation to allow ingesting of documents from sharepoint
datasources. The implementation requires one to set up a client app in
their ms environment with certificate crendentials that allow access to
the desired sharepoint resources.
This implementation recursively sources documents from sharepoint the
list of sharepoint folders provided during the set up.
  • Loading branch information
akizito committed Apr 29, 2024
1 parent 360abaf commit 6e4ad79
Show file tree
Hide file tree
Showing 8 changed files with 681 additions and 148 deletions.
8 changes: 2 additions & 6 deletions docs/src/dev-guide/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,12 @@ Install dependencies
pip install -r nesis/api/requirements.txt
```

Running the database migration
```bash
alembic -x "url=postgresql://postgres:password@127.0.0.1:65432/nesis" --config nesis/api/alembic.ini upgrade head
```

Start the service
```bash
export NESIS_ADMIN_EMAIL="some.email@domain.com"
export NESIS_ADMIN_PASSWORD="password"
python nesis/rag/api/main.py
export NESIS_API_DATABASE_CREATE="true"
python nesis/api/core/main.py
```

#### Start the frontend
Expand Down
2 changes: 1 addition & 1 deletion nesis/api/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"database": {
"url": os.environ.get("NESIS_API_DATABASE_URL"),
"debug": os.environ.get("NESIS_API_DATABASE_DEBUG", False),
"create": False,
"create": bool(os.environ.get("NESIS_API_DATABASE_CREATE", "false")),
},
"tasks": {
"job": {
Expand Down
Loading

0 comments on commit 6e4ad79

Please sign in to comment.