Documents
In Jina, Documents are the most basic data type you can work with. They are the data you want to use and can be used for indexing and/or querying. They can be made with whatever data type you require, such as text, gifs, PDF files, 3D meshes, and so on.
We will use Documents to index and query, but since Documents can be of any type and size, it’s likely that we will need to divide them before use.
As an analogy, think of a Document as a chocolate bar. There are several types of chocolate: white, dark, milk, and so on. Likewise, a Document can be of several types, such as audio, text, video, a 3D mesh, and so on. Also, if we have a big chocolate bar, we will probably divide it into smaller pieces before eating it. Accordingly, if we have a big Document, we should divide it into smaller pieces before indexing.
This is how a Document looks in Python code:
from jina import Document document = Document()
As you can see, all you need to create a Document...