SPTAG Module has no Attribute AnnIndex
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 5k
- Forks
- 622
- Avg merge
- 8h 37m
- Merged PRs (30d)
- 5
Description
Loadnf sptag indexes into the memory
index = SPTAG.AnnIndex.Load('sptag_index')
batch_size = 20
Local index test on the vector search
index = SPTAG.AnnIndex.Load('sptag_index')
results = []
for val in embeddings:
result = index.SearchWithMetaData(val, batch_size) # Search k=3 nearest vectors for query vector q
results.append([str(r).replace("b\'","").replace("\\n\'","") for r in result[2]])
So, whenever we load SPTAG and calling AnnIndex attribute with it throws an error.
AttributeError Traceback (most recent call last)
in
1 # Loadnf sptag indexes into the memory
----> 2 index = SPTAG.AnnIndex.Load('sptag_index')
AttributeError: module 'SPTAG' has no attribute 'AnnIndex'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Python example with SPTAG.AnnIndex.Load('sptag_index'), then inspect how the Python module exports index classes and whether AnnIndex is available in the installed build. Done means the documented loading call works or the supported Python API and required build conditions are clearly identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- backend, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100