mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-18 23:36:00 +00:00
Documentation edits made through Mintlify web editor
This commit is contained in:
parent
a77b443f80
commit
1c3f369ba9
1 changed files with 0 additions and 53 deletions
|
|
@ -4,56 +4,3 @@ openapi: post /add
|
|||
|
||||
Add a new memory with content and metadata.
|
||||
|
||||
Fields:
|
||||
|
||||
`content`: string
|
||||
|
||||
`id`: string
|
||||
|
||||
`metadata`: Record
|
||||
|
||||
The `content` can be of the following types:
|
||||
|
||||
- note / Markdown
|
||||
|
||||
- If it is a markdown, all the images inside `![]` image tags will automatically be parsed.
|
||||
|
||||
- pdf
|
||||
|
||||
- tweet
|
||||
|
||||
- google_doc
|
||||
|
||||
- notion_doc
|
||||
|
||||
- webpage URL
|
||||
|
||||
- Images and other content is also intelligently parsed in case of a webpage.
|
||||
|
||||
|
||||
The metadata provided is a JSON object.
|
||||
|
||||
for eg.
|
||||
|
||||
``` json
|
||||
{
|
||||
"classId": "21412",
|
||||
"year": "fifth"
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
If you wish to do exact searches, please use strings. But if you want to search in a range (time, numbers, prices), you can use numbers too.
|
||||
|
||||
``` json
|
||||
{
|
||||
"price": 1250
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
More about \[metadata filtering here\]([https://docs.supermemory.ai/essentials/metadata-filtering](https://docs.supermemory.ai/essentials/metadata-filtering))
|
||||
|
||||
The `id` is optional. If provided, supermemory will store the same ID as your internal database. This can help for retrieval purposes.
|
||||
|
||||
If the `id` already exists, supermemory will update it instead.
|
||||
Loading…
Add table
Add a link
Reference in a new issue