Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

falkor-integration #2

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
41eeccd
falkor-integration
Sep 10, 2024
3bd49b5
Feature: milvus db integration (#1821)
ketangangal Sep 10, 2024
e3aca70
chore: version -> `0.1.12` (#1846)
Dev-Khant Sep 10, 2024
db835cd
Update README.md (#1847)
deshraj Sep 10, 2024
5eeeb4e
Fixing memory adding errors (#1848)
PranavPuranik Sep 10, 2024
ac7b7aa
Added custom prompt support (#1849)
prateekchhikara Sep 10, 2024
6c3d44b
fix-example
Sep 11, 2024
ca95bed
database-config-val
Sep 11, 2024
f40a2e7
Add CONTRIBUTING.md (#1836)
techcontributor Sep 11, 2024
47a8e67
Fixed environment variables priority in OpenAILLM (#1851)
FoliageOwO Sep 12, 2024
f9634b4
add test cases for embeddings (#1829)
reachAnushaKondam Sep 13, 2024
959f4bb
Add Support for Vertex AI Embeddings (#1840)
Divyanshu9822 Sep 13, 2024
d66654b
Add API-Reference docs for Organization/Project (#1858)
Dev-Khant Sep 14, 2024
dc5a26f
Update docs for exisiting APIs to support organization/project (#1859)
Dev-Khant Sep 14, 2024
8e2f7f2
Shows all responses in api-reference (#1865)
Dev-Khant Sep 14, 2024
5b9be67
Migrate session_id -> run_id (#1864)
Dev-Khant Sep 16, 2024
30edf49
chore: version -> 0.1.14 (#1869)
Dev-Khant Sep 16, 2024
3502344
Remove auto install library for chromadb (#1870)
Dev-Khant Sep 16, 2024
0a78cb9
added vector store test cases (#1868)
reachAnushaKondam Sep 16, 2024
55c54be
[Misc] Lint code and fix code smells (#1871)
deshraj Sep 17, 2024
495a66d
gen-graph-use
Sep 17, 2024
19db2cc
def-databasename
Sep 17, 2024
7f3b23d
update-docs
Sep 17, 2024
8c3c9e1
Docs update (#1875)
prateekchhikara Sep 17, 2024
fc88cae
update milvus docs (#1876)
Dev-Khant Sep 17, 2024
07de1c4
update-graph-use
Sep 18, 2024
12da12d
local-pas
Sep 18, 2024
852220a
Merge branch 'main' into falkor-int
galshubeli Sep 18, 2024
9a49aa8
comment-graph-query
Oct 10, 2024
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
51 changes: 51 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Contributing to mem0

Let us make contribution easy, collaborative and fun.

## Submit your Contribution through PR

To make a contribution, follow these steps:

1. Fork and clone this repository
2. Do the changes on your fork with dedicated feature branch `feature/f1`
3. If you modified the code (new feature or bug-fix), please add tests for it
4. Include proper documentation / docstring and examples to run the feature
5. Ensure that all tests pass
6. Submit a pull request

For more details about pull requests, please read [GitHub's guides](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).


### 📦 Package manager

We use `poetry` as our package manager. You can install poetry by following the instructions [here](https://python-poetry.org/docs/#installation).

Please DO NOT use pip or conda to install the dependencies. Instead, use poetry:

```bash
make install_all

#activate

poetry shell
```

### 📌 Pre-commit

To ensure our standards, make sure to install pre-commit before starting to contribute.

```bash
pre-commit install
```

### 🧪 Testing

We use `pytest` to test our code. You can run the tests by running the following command:

```bash
poetry run pytest
```

Several packages have been removed from Poetry to make the package lighter. Therefore, it is recommended to run `make install_all` to install the remaining packages and ensure all tests pass. Make sure that all tests pass before submitting a pull request.

We look forward to your pull requests and can't wait to see your contributions!
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ install:

install_all:
poetry install
poetry run pip install groq together boto3 litellm ollama
poetry run pip install groq together boto3 litellm ollama chromadb sentence_transformers

# Format code with ruff
format:
poetry run ruff check . --fix $(RUFF_OPTIONS)
poetry run ruff format mem0/

# Sort imports with isort
sort:
poetry run isort . $(ISORT_OPTIONS)
poetry run isort mem0/

# Lint code with ruff
lint:
poetry run ruff .
poetry run ruff check mem0/

docs:
cd docs && mintlify dev
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<a href="https://github.com/mem0ai/mem0">
<img src="docs/images/banner-sm.png" width="800px" alt="Mem0 - The Memory Layer for Personalized AI">
</a>
<p align="center"><a href=https://www.ycombinator.com/launches/LpA-mem0-open-source-memory-layer-for-ai-apps target='_blank'><img alt=Launch YC: Mem0 - Open Source Memory Layer for AI Apps src=https://www.ycombinator.com/launches/LpA-mem0-open-source-memory-layer-for-ai-apps/upvote_embed.svg/></a></p>


<p align="center">
<a href="https://mem0.ai">Learn more</a>
·
Expand Down Expand Up @@ -157,7 +160,7 @@ history = m.history(memory_id=<memory_id_1>)

### Graph Memory
To initialize Graph Memory you'll need to set up your configuration with graph store providers.
Currently, we support Neo4j as a graph store provider. You can setup [Neo4j](https://neo4j.com/) locally or use the hosted [Neo4j AuraDB](https://neo4j.com/product/auradb/).
Currently, we support FalkorDB and Neo4j as a graph store providers. You can set up [FalkorDB](https://www.falkordb.com/) or [Neo4j](https://neo4j.com/) locally or use the hosted [FalkorDB Cloud](https://app.falkordb.cloud/) or [Neo4j AuraDB](https://neo4j.com/product/auradb/).
Moreover, you also need to set the version to `v1.1` (*prior versions are not supported*).
Here's how you can do it:

Expand All @@ -166,11 +169,12 @@ from mem0 import Memory

config = {
"graph_store": {
"provider": "neo4j",
"provider": "falkordb",
"config": {
"url": "neo4j+s://xxx",
"username": "neo4j",
"password": "xxx"
"host": "---"
"username": "---",
"password": "---",
"port": "---"
}
},
"version": "v1.1"
Expand Down Expand Up @@ -208,4 +212,4 @@ We value and appreciate the contributions of our community. Special thanks to ou

## License

This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.
This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.
20 changes: 7 additions & 13 deletions cookbooks/add_memory_using_qdrant_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,21 @@

# Loading OpenAI API Key
load_dotenv()
OPENAI_API_KEY = os.environ.get('OPENAI_API_KEY')
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
USER_ID = "test"
quadrant_host="xx.gcp.cloud.qdrant.io"
quadrant_host = "xx.gcp.cloud.qdrant.io"

# creating the config attributes
collection_name="memory" # this is the collection I created in QDRANT cloud
api_key=os.environ.get("QDRANT_API_KEY") # Getting the QDRANT api KEY
host=quadrant_host
port=6333 #Default port for QDRANT cloud
collection_name = "memory" # this is the collection I created in QDRANT cloud
api_key = os.environ.get("QDRANT_API_KEY") # Getting the QDRANT api KEY
host = quadrant_host
port = 6333 # Default port for QDRANT cloud

# Creating the config dict
config = {
"vector_store": {
"provider": "qdrant",
"config": {
"collection_name": collection_name,
"host": host,
"port": port,
"path": None,
"api_key":api_key
}
"config": {"collection_name": collection_name, "host": host, "port": port, "path": None, "api_key": api_key},
}
}

Expand Down
Loading