chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase
This commit is contained in:
parent
970e08c466
commit
1f7e365a4e
237 changed files with 1951 additions and 49413 deletions
|
|
@ -1228,7 +1228,7 @@ export class JsHnswVectorIndex implements VectorIndexProvider {
|
|||
this.clear()
|
||||
|
||||
// Step 2: Load system data (entry point, max level)
|
||||
const systemData = await (this.storage as any).getHNSWSystem()
|
||||
const systemData = await this.storage.getHNSWSystem()
|
||||
if (systemData) {
|
||||
this.entryPointId = systemData.entryPointId
|
||||
this.maxLevel = systemData.maxLevel
|
||||
|
|
@ -1270,13 +1270,9 @@ export class JsHnswVectorIndex implements VectorIndexProvider {
|
|||
{
|
||||
prodLog.info(`HNSW: Load all nodes at once (${storageType})`)
|
||||
|
||||
const result: {
|
||||
items: HNSWNoun[]
|
||||
totalCount?: number
|
||||
hasMore: boolean
|
||||
nextCursor?: string
|
||||
} = await (this.storage as any).getNounsWithPagination({
|
||||
limit: 10000000 // Effectively unlimited for local development
|
||||
const result = await this.storage.getNounsWithPagination({
|
||||
limit: 10000000, // Effectively unlimited for local development
|
||||
offset: 0
|
||||
})
|
||||
|
||||
totalCount = result.totalCount || result.items.length
|
||||
|
|
@ -1285,7 +1281,7 @@ export class JsHnswVectorIndex implements VectorIndexProvider {
|
|||
for (const nounData of result.items) {
|
||||
try {
|
||||
// Load HNSW graph data for this entity
|
||||
const hnswData = await (this.storage as any).getVectorIndexData(nounData.id)
|
||||
const hnswData = await this.storage.getVectorIndexData(nounData.id)
|
||||
|
||||
if (!hnswData) {
|
||||
// No HNSW data - skip (might be entity added before persistence)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue