142 Commits

Author SHA1 Message Date
paulpaliychuk
3efad4c225 chore: Pass embedding model in search utils 2024-09-26 16:20:01 -04:00
paulpaliychuk
e4bc756c31 Merge branch 'main' of github.com:getzep/graphiti into config-embedding-model
# Conflicts:
#	graphiti_core/search/search.py
2024-09-26 16:18:00 -04:00
Preston Rasmussen
fd341a6f16
Add MSC benchmark and improve search performance (#157)
* test cases

* test

* benchmark

* eval updates

* improve search performance

* remove data

* formatting

* add None type to config

* update sanitization

* push version

* maketrans update

* mypy
2024-09-26 16:12:38 -04:00
paulpaliychuk
9a0971552a chore: Update comment 2024-09-26 14:46:10 -04:00
Arno
124363a3bc feat: configurable embedding model
format
2024-09-26 13:37:46 +08:00
Pavlo Paliychuk
b537cf56e5
chore: Make deleting groups safer (#155)
* chore: Make deleting groups safer

* chore: Use appropriate errors in delete group checks

* chore: Add GroupsEdgesNotFound error type
v0.3.6
2024-09-24 20:08:09 -04:00
Pavlo Paliychuk
bca838f61d
fix: Make groupIds option in search query dto (#154)
* fix: Make groupIds option in search query dto

* chore: Format
v0.3.5
2024-09-24 19:05:12 -04:00
Pavlo Paliychuk
09b16a2565
refactor: remove unnecessary type casting in search() function (#153)
fix: Mypy error
2024-09-24 16:36:24 -04:00
Pavlo Paliychuk
44b016da6b
feat: async close and multi-group search support (#151)
* chore: Support a list of group_ids on search + await driver.close()

* fix: formatter and linter

* chore: Version bump
2024-09-24 16:13:04 -04:00
Preston Rasmussen
794b705664
Group id fix (#152)
* node distance and group_ids fixed

* get all with no group_id passed

* push

* push

* remove comments

* mypy

* mypy ids

* please mypy

* trust

* last one
2024-09-24 15:55:30 -04:00
dependabot[bot]
cfeb58daba
chore(deps-dev): Bump langsmith from 0.1.121 to 0.1.125 (#146)
Bumps [langsmith](https://github.com/langchain-ai/langsmith-sdk) from 0.1.121 to 0.1.125.
- [Release notes](https://github.com/langchain-ai/langsmith-sdk/releases)
- [Commits](https://github.com/langchain-ai/langsmith-sdk/compare/v0.1.121...v0.1.125)

---
updated-dependencies:
- dependency-name: langsmith
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 11:58:39 -04:00
dependabot[bot]
9f36266ddc
chore(deps-dev): Bump ruff from 0.6.5 to 0.6.7 (#147)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.5 to 0.6.7.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.5...0.6.7)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 11:58:25 -04:00
dependabot[bot]
aea8131d90
chore(deps): Bump openai from 1.45.1 to 1.47.0 (#148)
Bumps [openai](https://github.com/openai/openai-python) from 1.45.1 to 1.47.0.
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openai/openai-python/compare/v1.45.1...v1.47.0)

---
updated-dependencies:
- dependency-name: openai
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 11:58:14 -04:00
dependabot[bot]
b49951b00a
chore(deps): Bump pydantic from 2.9.1 to 2.9.2 (#149)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.1 to 2.9.2.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.9.1...v2.9.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 11:58:03 -04:00
dependabot[bot]
273811f626
chore(deps-dev): Bump langgraph from 0.2.19 to 0.2.23 (#150)
Bumps [langgraph](https://github.com/langchain-ai/langgraph) from 0.2.19 to 0.2.23.
- [Release notes](https://github.com/langchain-ai/langgraph/releases)
- [Commits](https://github.com/langchain-ai/langgraph/compare/0.2.19...0.2.23)

---
updated-dependencies:
- dependency-name: langgraph
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 11:57:53 -04:00
Preston Rasmussen
5506a01e24
In memory label propagation community detection (#136)
* WIP

* in memory graph detection

* format

* add comments

* update readme

* fixed an issue where solo nodes would throw an error when building communities
v0.3.4
2024-09-23 11:05:44 -04:00
Pavlo Paliychuk
2fc1b00602
feat: add FastAPI lifespan and healthcheck endpoint (#144)
* chore: Add healthcheck endpoint + build indexes and constraints on svc startup

* chore: Bring back driver close call
2024-09-23 10:12:35 -04:00
Daniel Chalef
5d2121e1a3
limit community building concurrency (#142) 2024-09-22 13:38:54 -07:00
Daniel Chalef
c6ead2e4a7
add py.typed (#141) 2024-09-22 11:34:14 -07:00
Daniel Chalef
14d5ce0b36
Override default max tokens for Anthropic and Groq clients (#143)
* Override default max tokens for Anthropic and Groq clients

* Override default max tokens for Anthropic and Groq clients

* Override default max tokens for Anthropic and Groq clients
2024-09-22 11:33:54 -07:00
Pavlo Paliychuk
d8c49c1c0a
feat: Add delete group endpoint (#132)
* feat: Add delete group endpoint

* chore: Version bump

* chore: improve not found error handling
2024-09-22 14:03:32 -04:00
Kyle Diaz
02ff178769
Add instructions to set up integration testing to contributor docs (#135)
* Add instructions to set up integration testing w/ neo4j

* Clarify integration env docs
2024-09-22 11:03:23 -07:00
Daniel Chalef
a1d871e179
chore: Update DEFAULT_MAX_TOKENS to 16384 in config.py (#138) 2024-09-22 09:57:41 -07:00
Daniel Chalef
9b71b46c0f
feat: Refactor OpenAIClient initialization and add client parameter (#140)
The code changes refactor the `OpenAIClient` initialization to accept an optional `client` parameter. This allows the client to be passed in from outside, providing more flexibility and enabling easier testing.
2024-09-21 12:09:04 -07:00
Daniel Chalef
32b51530ec
feat: Fix bug in dedupe_node_list function (#137)
The code changes fix a bug in the `dedupe_node_list` function where a node instance was not found in the node map. The bug is now handled by logging a warning message and skipping the iteration. This ensures that the function continues to execute without any errors.
2024-09-20 21:03:20 -07:00
Daniel Chalef
6d065d363a
Handle JSONDecodeError in is_server_or_retry_error function (#133)
feat: handle JSONDecodeError in is_server_or_retry_error function
2024-09-20 11:16:04 -07:00
Daniel Chalef
69964d302a
Update README.md with graphiti logo (#131) 2024-09-19 14:52:16 -07:00
Pavlo Paliychuk
33908da18e
feat: add OpenAI configuration options to Settings and update LLM client setup (#126)
* chore: Add model and base url customization support for graphiti svc

* fix: formatter
2024-09-19 16:35:36 -04:00
Preston Rasmussen
bfd8d3bb68
Add group_id CRUD endpoints and option store content bool (#130)
* add group_ids CRUD

* option to not store content

* ellipsis
2024-09-19 16:16:40 -04:00
Preston Rasmussen
e398f95612
Mentions reranker (#124)
* documentation update

* update communities

* mentions reranker

* fix episode edge mentions

* get episode mentions

* add communities to mentions endpoint

* rebase

* defaults episodes to empty list

* update
v0.3.3
2024-09-18 15:44:28 -04:00
dependabot[bot]
d133c39313
chore(deps-dev): Bump pytest from 8.3.2 to 8.3.3 (#113)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.2 to 8.3.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.3.2...8.3.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 12:53:02 -04:00
Pavlo Paliychuk
529a1aaecf
fix: update UUID generation and message handling (#123)
* chore: Update uuid generation + service fixes

* chore: Version bump
2024-09-18 12:48:44 -04:00
dependabot[bot]
db376c64c3
chore(deps-dev): Bump langsmith from 0.1.116 to 0.1.121 (#114)
Bumps [langsmith](https://github.com/langchain-ai/langsmith-sdk) from 0.1.116 to 0.1.121.
- [Release notes](https://github.com/langchain-ai/langsmith-sdk/releases)
- [Commits](https://github.com/langchain-ai/langsmith-sdk/compare/v0.1.116...v0.1.121)

---
updated-dependencies:
- dependency-name: langsmith
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 12:15:17 -04:00
dependabot[bot]
3f3e346ed9
chore(deps-dev): Bump ruff from 0.6.4 to 0.6.5 (#115)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.4 to 0.6.5.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.4...0.6.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 12:15:02 -04:00
dependabot[bot]
8737c9c686
chore(deps): Bump openai from 1.44.0 to 1.45.1 (#116)
Bumps [openai](https://github.com/openai/openai-python) from 1.44.0 to 1.45.1.
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openai/openai-python/compare/v1.44.0...v1.45.1)

---
updated-dependencies:
- dependency-name: openai
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 12:14:44 -04:00
dependabot[bot]
dd5f26420e
chore(deps-dev): Bump langchain-openai from 0.1.23 to 0.1.25 (#117)
Bumps [langchain-openai](https://github.com/langchain-ai/langchain) from 0.1.23 to 0.1.25.
- [Release notes](https://github.com/langchain-ai/langchain/releases)
- [Commits](https://github.com/langchain-ai/langchain/compare/langchain-openai==0.1.23...langchain-openai==0.1.25)

---
updated-dependencies:
- dependency-name: langchain-openai
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 12:14:27 -04:00
Preston Rasmussen
a18b3179ee
Add community update (#121)
* documentation update

* update communities

* update runner

* make format

* mypy

* oops

* add update_communities
2024-09-18 11:37:34 -04:00
Pavlo Paliychuk
ebb1ec2463
fix: Syntax error on node crud (#119) v0.3.2 2024-09-17 12:19:20 -04:00
Pavlo Paliychuk
19a6ebc6fe
Fix groupless search (#118)
* fix(search): 🐛 Search across null group_ids

* chore: Version bump

* chore: Set group_ids to none if it's an empty list

* fix: Check for group ids being a list before setting it to None if empty

* fix check

* chore: Simplify group_ids check

* chore: Simplify the check further
v0.3.1
2024-09-16 16:23:07 -04:00
Preston Rasmussen
d7c20c1f59
Search refactor + Community search (#111)
* WIP

* WIP

* WIP

* community search

* WIP

* WIP

* integration tested

* tests

* tests

* mypy

* mypy

* format
2024-09-16 14:03:05 -04:00
Pavlo Paliychuk
e4ee8d62fa
Version bump (#108)
Update pyproject.toml
v0.3.0
2024-09-13 11:50:26 -04:00
Preston Rasmussen
85cf8e5840
Improve node distance reranker speed (#107)
* much faster

* clean up code

* variable rename
2024-09-12 11:23:45 -04:00
Pavlo Paliychuk
8085b52f2a
feat: add error handling for missing nodes and edges, introduce new API endpoints, and update ZepGraphiti class (#104)
* feat: Expose crud operations to service + add graphiti errors

* fix: linter
2024-09-11 12:53:17 -04:00
Preston Rasmussen
c0a740ff60
Community nodes (#103)
* add gds

* community work

* save progress

* community updates

* e2e communities

* troubleshooting

* updates

* communities

* remove unused import
2024-09-11 12:06:35 -04:00
Preston Rasmussen
4122d350a5
add extract nodes from text prompt (#106) 2024-09-11 12:06:08 -04:00
Daniel Chalef
b214baa85f
Add py.typed file (#105)
* Add py.typed file



---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/getzep/graphiti?shareId=XXXX-XXXX-XXXX-XXXX).

* Update pyproject.toml
2024-09-11 08:44:06 -04:00
Daniel Chalef
6851b1063a
Fix llm client retry (#102)
* Fix llm client retry

* feat: Improve llm client retry error message
2024-09-10 08:15:27 -07:00
Pavlo Paliychuk
ad2962c6ba
feat(graph-service): add entity node handling and update Docker configurations (#100)
* feat: Add entity node request + service maintenance

* chore: Fix linter
2024-09-10 11:00:52 -04:00
Daniel Chalef
3f12254916
Fix missing default None for add_episode_bulk (#101)
Fix missing default None for add_episode and add_episode_bulk



---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/getzep/graphiti?shareId=XXXX-XXXX-XXXX-XXXX).
2024-09-09 22:12:59 -04:00
dependabot[bot]
1a447d75a2
chore(deps-dev): Bump langgraph from 0.2.18 to 0.2.19 (#95)
Bumps [langgraph](https://github.com/langchain-ai/langgraph) from 0.2.18 to 0.2.19.
- [Release notes](https://github.com/langchain-ai/langgraph/releases)
- [Commits](https://github.com/langchain-ai/langgraph/compare/0.2.18...0.2.19)

---
updated-dependencies:
- dependency-name: langgraph
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 19:45:32 -04:00