Commit ab3559e
committed
fix(langchain): align similarity_search() signature with Sequence protocol and issue spec
- Change query_vector type annotation from list[float] to Sequence[float]
(matches existing code comment that explicitly documents numpy.ndarray support
and aligns with CoordinodeClient.vector_search() signature)
- Change default k from 10 to 5 (matches issue #20 acceptance criteria)
- Strengthen test_similarity_search_returns_results: replace non-negativity
check with full ascending-order assertion on adjacent distances
- Use store.structured_query(param_map=...) in test_upsert_relations_idempotent
instead of store._client.cypher() — keeps integration test stable vs internal API1 parent 951b487 commit ab3559e
3 files changed
Lines changed: 6 additions & 5 deletions
File tree
- langchain-coordinode/langchain_coordinode
- tests/integration/adapters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
200 | | - | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments