Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading Json file doesn't work #160

Open
1 of 2 tasks
preddy4690 opened this issue May 17, 2024 · 2 comments
Open
1 of 2 tasks

Uploading Json file doesn't work #160

preddy4690 opened this issue May 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@preddy4690
Copy link

Description

When I try to upload a json file, it shows the message 'Embedding completed with 1 Documents and 0 chunks in 0.0s

Is this a bug or a feature?

  • Bug
  • Feature

Steps to Reproduce

Verba Start. On the dashboard, click on 'Add Documents' button at the top. Click on Add Files and Choose a Json file. Click Import button.

Additional context

Uploading PDFs works flawlessly. But Uploading .json files doesn't work.

@thomashacker thomashacker added the enhancement New feature or request label May 17, 2024
@thomashacker
Copy link
Collaborator

Right now, Verba only accepts JSON files that looks like this:
We are still working on a general JSON import

{
    "text": "Your Text",
    "type": "Documentation",
    "name": "document_name",
    "path": "can_be_empty",
    "link": "if_you_want_to_link_to_the_source",
    "timestamp": "",
    "reader": "JSON",
    "meta": {},
    "chunks": []
}

@shoff
Copy link

shoff commented Jun 7, 2024

Could you comment please on exactly what is it looking for in json? I have json files that look very much like that, nothing out of the ordinary and it doesn't index them.
I get the same error
(INFO) Starting Embedding with ADAEmbedder (SUCCESS) Embedding completed with 1 Documents and 0 chunks in 0.01s

Edit: renaming the files from .json to .txt seemd to work and it seems that weaviate indexed the data appropriatly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants