Step 3: Performing Search in Vector Stores
Running search in the Deep Lake Vector Store
How to Search the Deep Lake Vector Store
Performing Vector Search
prompt = "What do trust and safety models do?"
search_results = vector_store.search(embedding_data=prompt, embedding_function=embedding_function)len(search_results['text'])
# Returns 4search_results['text'][0]Trust and Safety Models
=======================
We decided to open source the training code of the following models:
- pNSFWMedia: Model to detect tweets with NSFW images. This includes adult and porn content.
- pNSFWText: Model to detect tweets with NSFW text, adult/sexual topics.
- pToxicity: Model to detect toxic tweets. Toxicity includes marginal content like insults and certain types of harassment. Toxic content does not violate Twitter's terms of service.
- pAbuse: Model to detect abusive content. This includes violations of Twitter's terms of service, including hate speech, targeted harassment and abusive behavior.
We have several more models and rules that we are not going to open source at this time because of the adversarial nature of this area. The team is considering open sourcing more models going forward and will keep the community posted accordingly.Customization of Vector Search
Full Customization of Vector Search
Deep Lake also offers a variety of search options depending on where data is stored (load, cloud, Deep Lake storage, etc.) and where query execution should take place (client side or server side)
Was this helpful?