Comments (4)
You need to specify id
, e.g.:
batch_feed = [
{
"id": idx,
"fields": sentence
}
for idx, sentence in enumerate(sentence_data)
]
Maybe you have duplicate id`s?
from pyvespa.
That's it! Generated ids were not unique and resulted in documents getting overwritten in the index. Thanks for the pointer.
from pyvespa.
There are likely schema issues with the documents that are failing. You can inspect the results and see the error messages, for ex.:
results = app.feed_batch()
failed_docs = [x for x in results if x.status_code != 200]
failed_docs[0].json # inspect the error message
from pyvespa.
I tried on a more powerful machine.
In [9]: failed_docs = [x for x in response if x.status_code != 200]
In [10]: len(failed_docs)
Out[10]: 0
No failed feed this time.
The number of documents in the data store is still 735.1k instead of 1M+.
For context,
# command used to ingest data
response = app.feed_batch(schema="coso", batch=data, batch_size=1000, total_timeout=200, asynchronous=True, connections=100)
len(data)
#1093460
I tried ingesting data into prod and see the same number of documents in the prod store as well - 735.1k.
What else can I do to check what went wrong?
from pyvespa.
Related Issues (20)
- What about increasing the minimum required Python version? HOT 1
- Add field to schema HOT 2
- No document can be fed because ostensibly there isn't enough disk space HOT 7
- Allow to add configuration to content HOT 2
- Dependency Dashboard
- Types for RankProfile.inputs HOT 1
- VespaSync::delete_all_docs only makes a single delete call HOT 1
- Better feed implementation/interface HOT 1
- Deprecation of PyVespa functionality HOT 1
- Add support for mode streaming with pyvespa HOT 1
- Add support for node resource specification and count
- Remove dependency on pandas
- Struct inconsistencie HOT 3
- Deploy with docker compose and similar setup vespa to other vector dbs HOT 5
- Manually deployed vespa with docker compose Failed to establish a new connection: [Errno 111] HOT 15
- clear explanation where does the docker container stores files HOT 1
- Type hint of RankProfile inputs HOT 3
- Make `add_fields()` method of `Schema` add them outside of document. HOT 1
- VespaAsync _open_aiohttp_session method doesn't need to be async
- add ability to manage client lifecycles outside of VespaClients
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvespa.