Commit graph

166 commits

Author SHA1 Message Date
Preston Rasmussen
194ecf5eb4
set content to empty after episode extractions have happened (#191)
* set content to empty after episode extractions have happened

* format

* bump version
2024-10-15 12:13:14 -04:00
Preston Rasmussen
7c15b729a9
fix duplicate search results bug (#190)
* fix bugs

* format

* syntax
2024-10-14 21:54:33 -04:00
Preston Rasmussen
7c5135910e
bump version (#189) 2024-10-11 18:30:00 -04:00
Preston Rasmussen
fca1f7342e
Node group error type (#185)
* add new error

* update for compatibility wit hdev environment

* update

* fix mmr score

* make mmr more readable
2024-10-11 16:51:32 -04:00
Preston Rasmussen
6c3b32e620
make broader use of debug logs (#187) 2024-10-11 16:38:56 -04:00
Pavlo Paliychuk
f52b45b9b2
Fix release workflow (#183)
* fix: Release workflow for service image

* fix: Add a on:workflow call trigger to build and start svc workflow
2024-10-08 17:48:15 -04:00
Pavlo Paliychuk
edfc7ac524
fix: Release workflow for service image (#182) 2024-10-08 17:40:17 -04:00
dependabot[bot]
67bea7d079
chore(deps-dev): Bump anthropic from 0.34.2 to 0.35.0 (#176)
Bumps [anthropic](https://github.com/anthropics/anthropic-sdk-python) from 0.34.2 to 0.35.0.
- [Release notes](https://github.com/anthropics/anthropic-sdk-python/releases)
- [Changelog](https://github.com/anthropics/anthropic-sdk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/anthropics/anthropic-sdk-python/compare/v0.34.2...v0.35.0)

---
updated-dependencies:
- dependency-name: anthropic
  dependency-type: direct:development
  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-10-08 13:55:29 -04:00
Preston Rasmussen
49aeaf75f2
Add mmr reranking (#180)
* mmr start

* add mmr function

* normalize

* add mmr options to search

* update communities

* build communities

* format

* clean up normalization

* normalize in mmr

* update
2024-10-08 13:55:10 -04:00
dependabot[bot]
5508dba1b3
chore(deps): Bump openai from 1.51.0 to 1.51.1 (#175)
Bumps [openai](https://github.com/openai/openai-python) from 1.51.0 to 1.51.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.51.0...v1.51.1)

---
updated-dependencies:
- dependency-name: openai
  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-10-07 23:57:57 -04:00
dependabot[bot]
f051883b5a
chore(deps-dev): Bump langsmith from 0.1.130 to 0.1.131 (#177)
Bumps [langsmith](https://github.com/langchain-ai/langsmith-sdk) from 0.1.130 to 0.1.131.
- [Release notes](https://github.com/langchain-ai/langsmith-sdk/releases)
- [Commits](https://github.com/langchain-ai/langsmith-sdk/compare/v0.1.130...v0.1.131)

---
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-10-07 23:57:34 -04:00
dependabot[bot]
cf6847a963
chore(deps-dev): Bump ruff from 0.6.8 to 0.6.9 (#178)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.8 to 0.6.9.
- [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.8...0.6.9)

---
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-10-07 23:57:21 -04:00
dependabot[bot]
51beaff81b
chore(deps): Bump numpy from 2.1.1 to 2.1.2 (#179)
Bumps [numpy](https://github.com/numpy/numpy) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](https://github.com/numpy/numpy/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: numpy
  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-10-07 23:57:05 -04:00
Preston Rasmussen
e15c872900
Fix edge invalidation (#174)
* update edge operations

* add new tests
2024-10-07 11:45:31 -04:00
Preston Rasmussen
377225eec5
add addepisode return object (#172)
* add addepisode return

* format
2024-10-03 15:39:57 -04:00
Preston Rasmussen
c8ff5be8ce
Msc benchmark update (#173)
* eval update

* I sped it up

* make format

* search updates

* updates

* cleanup

* make format

* remove unused imports

* poetry lock
2024-10-03 15:39:35 -04:00
Preston Rasmussen
ec2e51c5ec
test escape characters (#171)
* test escape characters

* format

* tests

* run tests

* copyright
2024-10-03 10:08:30 -04:00
Preston Rasmussen
ae9b5eca9c
update lucene sanitizer (#170)
* update lucene sanitizer

* update
2024-10-02 11:58:12 -04:00
Pavlo Paliychuk
28ec5b5871
feat: add health checks and dependencies to docker-compose (#163)
* chore: Add healthcheck for neo4j and graph service in docker compose

* chore: Fix healthcheck url
2024-10-01 10:25:27 -04:00
Pavlo Paliychuk
50f9418a30
chore: Add build and start CI workflow (#164)
* chore: Add build and start CI workflow

* chore: Fix docker-compose command

* chore: Fix healthcheck port

* fix: test docker compose setup

* chore: Simulate container start error

* chore: Always log service logs

* revert dev version changes, and simulate error in the healthcheck

* chore: Log docker logs only on failure, revert simulated error

* chore: Make release workflows depend on build and start workflow
2024-10-01 10:25:12 -04:00
dependabot[bot]
9d9150ac5f
chore(deps-dev): Bump langsmith from 0.1.125 to 0.1.129 (#165)
Bumps [langsmith](https://github.com/langchain-ai/langsmith-sdk) from 0.1.125 to 0.1.129.
- [Release notes](https://github.com/langchain-ai/langsmith-sdk/releases)
- [Commits](https://github.com/langchain-ai/langsmith-sdk/compare/v0.1.125...v0.1.129)

---
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-30 20:31:11 -04:00
dependabot[bot]
f2727e9deb
chore(deps-dev): Bump ruff from 0.6.7 to 0.6.8 (#166)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.7 to 0.6.8.
- [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.7...0.6.8)

---
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-30 20:30:59 -04:00
dependabot[bot]
3fc17ac518
chore(deps-dev): Bump langgraph from 0.2.23 to 0.2.28 (#167)
Bumps [langgraph](https://github.com/langchain-ai/langgraph) from 0.2.23 to 0.2.28.
- [Release notes](https://github.com/langchain-ai/langgraph/releases)
- [Commits](https://github.com/langchain-ai/langgraph/compare/0.2.23...0.2.28)

---
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-30 20:30:37 -04:00
dependabot[bot]
011f25a6ce
chore(deps): Bump neo4j from 5.24.0 to 5.25.0 (#168)
Bumps [neo4j](https://github.com/neo4j/neo4j-python-driver) from 5.24.0 to 5.25.0.
- [Release notes](https://github.com/neo4j/neo4j-python-driver/releases)
- [Changelog](https://github.com/neo4j/neo4j-python-driver/blob/5.0/CHANGELOG.md)
- [Commits](https://github.com/neo4j/neo4j-python-driver/compare/5.24.0...5.25.0)

---
updated-dependencies:
- dependency-name: neo4j
  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-30 20:30:24 -04:00
Pavlo Paliychuk
1a97cb4596
chore: Update openai version (#162)
* chore: Update openai dep version

* chore: Pull published image in docker compose
2024-09-28 18:50:38 -04:00
Pavlo Paliychuk
a7148d6260
feat: Dedicated embedder interface (#159)
* feat: Add Embedder interface and implement openai embedder

* feat: Add voyage ai embedder
2024-09-27 12:47:04 -04:00
Pavlo Paliychuk
790c37de38
chore: simplify Docker image release workflow (#158)
chore: Remove manual release trigger and set correct permissions on release action
2024-09-26 18:47:18 -04:00
ARNO
5bd18fc7dd
feat: configurable embedding model (#156)
* feat: configurable embedding model

format

* chore: Update comment

* chore: Pass embedding model in search utils

---------

Co-authored-by: paulpaliychuk <pavlo.paliychuk.ca@gmail.com>
2024-09-26 13:31:22 -07: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
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
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
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
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