Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env.rag.example
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ S3_ACCOUNT1_SCHEDULES=
#SERPAPI_KEY=your-serpapi-api-key
#SERPAPI_QUERIES="OpenAI news, Bitcoin price, Tesla updates"
#SERPAPI_SCHEDULES=60

# NOTION CONNECTORS (optional):

#NOTION1_INTEGRATION_TOKEN=secret_your-notion-integration-token
#NOTION1_PAGE_IDS=page-id-1,page-id-2
#NOTION1_DATABASE_IDS=database-id-1
#NOTION1_SCHEDULES=60
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

![mAItion](https://github.com/WikiTeq/mAItion/blob/main/mAItion.png?raw=true)

mAItion is an all-in-one ready-to-use AI-powered tool that combines your existing knowledge with LLMs,
mAItion is an all-in-one ready-to-use AI-powered tool that combines your existing knowledge with LLMs,
allowing you to chat, search and interact with your data through a slick chat interface. With mAItion
you can aggregate all your knowledge from many sources using Connectors into a central place and
you can aggregate all your knowledge from many sources using Connectors into a central place and
interact with your knowledge with ease!

## ✨ Features
Expand Down Expand Up @@ -126,7 +126,6 @@ The connector has the following configuration options:
# config.yaml

sources:
-
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: let's try to avoid making edits to the parts of the files that are unrelated to the PR. It's better to have a separate PR for fixing whitespaces rather than mixing it into unrelated change-sets

No action is needed, just FYI

- type: "s3" # must be s3
name: "account1" # arbitrary name for the connector, will be stored in metadata
config:
Expand All @@ -137,7 +136,7 @@ sources:
use_ssl: "${S3_ACCOUNT1_USE_SSL}" # use ssl for s3 connection, can be True or False
buckets: "${S3_ACCOUNT1_BUCKETS}" # single entry or comma-separated list i.e. bucket1,bucket2
schedules: "${S3_ACCOUNT1_SCHEDULES}" # single entry or comma-separated list i.e. 3600,60

- type: "s3"
name: "account2"
config:
Expand Down Expand Up @@ -228,6 +227,35 @@ SERPAPI1_QUERIES=aaa
SERPAPI1_SCHEDULES=3600
````

### Notion Connector

The Notion connector ingests pages from a Notion workspace. Each page becomes a separate document in the vector store.

Three modes are supported: explicit `page_ids`, `database_ids`, or load-all (when neither is set — fetches all pages the integration has access to).

```yaml
# config.yaml

sources:
- type: "notion"
name: "notion1"
config:
integration_token: "${NOTION1_INTEGRATION_TOKEN}" # Notion integration token (secret_...)
page_ids: "${NOTION1_PAGE_IDS}" # optional: comma-separated page IDs
database_ids: "${NOTION1_DATABASE_IDS}" # optional: comma-separated database IDs
request_delay: 0.3 # optional: delay between API calls in seconds
schedules: "${NOTION1_SCHEDULES}"
```

```dotenv
# .env.rag

NOTION1_INTEGRATION_TOKEN=secret_your-notion-integration-token
NOTION1_PAGE_IDS=page-id-1,page-id-2
NOTION1_DATABASE_IDS=database-id-1
NOTION1_SCHEDULES=60
```

## Embeddings and Inference

### Embeddings support
Expand Down
9 changes: 9 additions & 0 deletions config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ sources:
# queries: "${SERPAPI_QUERIES}"
# schedules: "${SERPAPI_SCHEDULES}"

#- type: "notion"
# name: "notion1"
# config:
# integration_token: "${NOTION1_INTEGRATION_TOKEN}" # Notion integration token (secret_...)
# page_ids: "${NOTION1_PAGE_IDS}" # optional: comma-separated page IDs
# database_ids: "${NOTION1_DATABASE_IDS}" # optional: comma-separated database IDs
# request_delay: 0.3 # optional: delay between API calls in seconds
# schedules: "${NOTION1_SCHEDULES}"

embedding:
# can be `local` or `openrouter`/`openai`
provider: local
Expand Down