Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Neural Search - From Prototype to Production with Jina

You're reading from  Neural Search - From Prototype to Production with Jina

Product type Book
Published in Oct 2022
Publisher Packt
ISBN-13 9781801816823
Pages 188 pages
Edition 1st Edition
Languages
Authors (6):
Jina AI Jina AI
Profile icon Jina AI
Bo Wang Bo Wang
Profile icon Bo Wang
Cristian Mitroi Cristian Mitroi
Profile icon Cristian Mitroi
Feng Wang Feng Wang
Profile icon Feng Wang
Shubham Saboo Shubham Saboo
Profile icon Shubham Saboo
Susana Guzmán Susana Guzmán
Profile icon Susana Guzmán
View More author details

Table of Contents (13) Chapters

Preface Part 1: Introduction to Neural Search Fundamentals
Chapter 1: Neural Networks for Neural Search Chapter 2: Introducing Foundations of Vector Representation Chapter 3: System Design and Engineering Challenges Part 2: Introduction to Jina Fundamentals
Chapter 4: Learning Jina’s Basics Chapter 5: Multiple Search Modalities Part 3: How to Use Jina for Neural Search
Chapter 6: Building Practical Examples with Jina Chapter 7: Exploring Advanced Use Cases of Jina Index Other Books You May Enjoy

How to encode multimodal documents

After defining the document for different types of data, the next step is to encode the documents into vector embeddings using a model. Formally, embedding was a multi-dimension of a document (often a [1, D] vector), which was designed to contain the content information of a document. With current advances in the performance of all the deep learning methods, even general-purpose models (for example, CNN models trained on ImageNet) can be used to extract meaningful feature vectors. In the following sections, we will show how to encode embedding for documents of different modalities.

Encoding text documents

To convert textual documents into vectors, we can use the pretrained Bert model (https://www.sbert.net/docs/pretrained_models.html) provided by Sentence Transformer (https://www.sbert.net/), as shown in the following example:

from docarray import DocumentArray
from sentence_transformers import SentenceTransformer
da = DocumentArray(......
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}