Hugo Alatrista-Salas (@HugoAlatsal) header
Hugo Alatrista-Salas (@HugoAlatsal) profile picture

I am a Ph.D. in Computer Science. I'm interested in techniques for discovering knowledge from complex data, including IA, pattern mining, visualization, etc.

Lima, Peru
Joined December 2014
Photo by Hugo Alatrista-Salas (@HugoAlatsal)Photo by Hugo Alatrista-Salas (@HugoAlatsal)Photo by Hugo Alatrista-Salas (@HugoAlatsal)Photo by Hugo Alatrista-Salas (@HugoAlatsal)Photo by Hugo Alatrista-Salas (@HugoAlatsal)Photo by Hugo Alatrista-Salas (@HugoAlatsal)Photo by Hugo Alatrista-Salas (@HugoAlatsal)
Hugo Alatrista-Salas retweeted
๐Ÿ๐Ÿ“ฐ Hugging Face Transformers: Leverage Open-Source AI in Python In this tutorial, you'll get hands-on experience with Hugging Face and the Transformers library in Python. #python realpython.com/huggingface-tโ€ฆ
1
8
25
3,720
The AI Agent Development Process. How to go from idea to production. (A thread) ๐Ÿงต
6
26
1
117
6,560
Hugo Alatrista-Salas retweeted
Essential Math for #DataScience โ€” Take Control of Your Data with Fundamental #LinearAlgebra, #Calculus, #Probability, and #Statistics: amzn.to/47GEBCZ โ€”โ€”โ€”โ€”โ€” #Mathematics #Analytics #MachineLearning #AI #DeepLearning #DataScientist #Algorithms
6
62
377
24,173
Hugo Alatrista-Salas retweeted
Explained well ๐Ÿ‘
Why do your AI tools feel exhausting? @rocketdotnew just showed me the answer.
7
152
1
827
37,756
Hugo Alatrista-Salas retweeted
ChatGPT has 400M+ users. But most of them are stuck in beginner mode. Here's the list of 1,000 prompts to use chatGPT like a pro:

252
688
34
5,033
7,010,376
Hugo Alatrista-Salas retweeted
New to Pandas? Here's a cheat sheet you can download (free):
9
236
6
1,392
158,255
Hugo Alatrista-Salas retweeted
OSI Model vs TCP/IP
5
135
2
997
82,785
Hugo Alatrista-Salas retweeted
Vector indexes are the difference between waiting 10 seconds and 10 milliseconds. Hereโ€™s what most developers donโ€™t know about them: ๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐˜ƒ๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…๐—ถ๐—ป๐—ด? In vector databases, these (vector) indexes organize your embeddings to make similarity searches efficient. Instead of comparing your query against every single vector (which would take forever!), the index helps narrow down the search to the most relevant candidates. ๐—ช๐—ต๐˜† ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ป๐—ฒ๐—ฒ๐—ฑ ๐—ถ๐˜? Searching millions of vectors without an index is computational suicide. Vector embeddings have hundreds or thousands of dimensions. Without indexing, every search compares against EVERY vector. With indexing, you only check relevant vectors, and your search becomes more efficient. ๐—ง๐˜†๐—ฝ๐—ฒ๐˜€ ๐—ผ๐—ณ ๐—œ๐—ป๐—ฑ๐—ฒ๐˜…๐—ฒ๐˜€: โ€ข ๐—ฉ๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…๐—ฒ๐˜€: For similarity search in high-dimensional space โ€ข ๐—œ๐—ป๐˜ƒ๐—ฒ๐—ฟ๐˜๐—ฒ๐—ฑ ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…๐—ฒ๐˜€: Traditional keyword matching - great for BM25 and exact matches ๐—ง๐˜†๐—ฝ๐—ฒ๐˜€ ๐—ผ๐—ณ ๐—ฉ๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ ๐—œ๐—ป๐—ฑ๐—ฒ๐˜…๐—ฒ๐˜€ ๐—ถ๐—ป ๐—ช๐—ฒ๐—ฎ๐˜ƒ๐—ถ๐—ฎ๐˜๐—ฒ: - ๐—›๐—ก๐—ฆ๐—ช - weaviate.io/developers/weaviโ€ฆ โ†’ Perfect for: Large-scale production (>100k vectors) โ€ข ๐—™๐—น๐—ฎ๐˜ - weaviate.io/developers/weaviโ€ฆ โ†’ Perfect for: Small datasets (<10k vectors) where precision is critical โ€ข ๐——๐˜†๐—ป๐—ฎ๐—บ๐—ถ๐—ฐ - weaviate.io/developers/weaviโ€ฆ โ†’ Perfect for: Growing applications ๐—ง๐—ต๐—ฒ ๐—ง๐—ฟ๐—ฎ๐—ฑ๐—ฒ-๐—ผ๐—ณ๐—ณ๐˜€ Every index type makes different compromises: - Speed vs Accuracy - Memory usage vs Performance - Build time vs Query time Choose wisely based on your specific needs. ๐—ช๐—ต๐—ฒ๐—ป ๐˜๐—ผ ๐˜€๐—ธ๐—ถ๐—ฝ ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…๐—ถ๐—ป๐—ด For tiny datasets (<1000 vectors) or when you need absolute precision for legal/medical applications, the overhead of indexing might not be worth it. Sometimes brute force is actually faster than maintaining an index structure. In short: โ†’ Choose HNSW when you need speed at scale โ†’ Pick Flat when accuracy is non-negotiable and data is manageable โ†’ Go Dynamic when you want Weaviate to handle the optimization for you Learn more about Vector Indexes: weaviate.io/developers/weaviโ€ฆ
31
72
2
319
20,501
Hugo Alatrista-Salas retweeted
๐Ÿ๐Ÿ“ฐ Getters and Setters: Manage Attributes in Python โ€” realpython.com/python-getterโ€ฆ #python
7
29
3,610
Hugo Alatrista-Salas retweeted
If I had to optimize latency, here are 12 rules I'd consider:
14
87
2
473
45,094
Hugo Alatrista-Salas retweeted
How to recognize Burnout
9
464
13
2,744
317,822
Hugo Alatrista-Salas retweeted
Harvard University is literally giving away free online courses. No payment Required. Here are best courses you don't want to miss in 2025:
7
276
6
1,828
208,825
Hugo Alatrista-Salas retweeted
LINUX COMMANDS CHEATSHEET
10
263
4
1,841
151,361
Hugo Alatrista-Salas retweeted
๐— ๐—–๐—ฃ plus ๐—”๐Ÿฎ๐—”, here is how they complement each other ๐Ÿ‘‡ Protocol wars continue to rage, let's understand how Googles A2A (Agent2Agent) protocol is different from MCP and how they complement each other (read till the end). ๐˜”๐˜ฐ๐˜ท๐˜ช๐˜ฏ๐˜จ ๐˜ฑ๐˜ช๐˜ฆ๐˜ค๐˜ฆ๐˜ด ๐˜ช๐˜ฏ ๐˜”๐˜Š๐˜—: ๐Ÿญ. MCP Host - Programs using LLMs at the core that want to access data through MCP. โ—๏ธ When combined with A2A, an Agent becomes MCP Host. ๐Ÿฎ. MCP Client - Clients that maintain 1:1 connections with servers. ๐Ÿฏ. MCP Server - Lightweight programs that each expose specific capabilities through the standardised Model Context Protocol. ๐Ÿฐ. Local Data Sources - Your computerโ€™s files, databases, and services that MCP servers can securely access. ๐Ÿฑ. Remote Data Sources - External systems available over the internet (e.g., through APIs) that MCP servers can connect to. ๐˜Œ๐˜ฏ๐˜ต๐˜ฆ๐˜ณ ๐˜ˆ2๐˜ˆ: Where MCP falls short, A2A tries to help. In multi-Agent applications where state is not necessarily shared ๐Ÿฒ. Agents (MCP Hosts) would implement and communicate via A2A protocol, that enables: โžก๏ธ Secure Collaboration. โžก๏ธ Task and State Management. โžก๏ธ User Experience Negotiation. โžก๏ธ Capability discovery - similar to MCP tools. ๐—›๐—ผ๐—ป๐—ฒ๐˜€๐˜ ๐˜๐—ต๐—ผ๐˜‚๐—ด๐—ต๐˜๐˜€: โ—๏ธ Open protocols for Agent communication are important but they are just a piece of the picture, there will be a need for standards that govern all of the existing protocols and other missing pieces. E.g. โ“ How do we standardise tracing and Observability in multi-agent IOA systems? โ“ How do we retain the identity of the running job of an AI Agent instance if the communication standard is not unified in different parts of the pipeline? โ“ ... โœ… More on this in my future posts, stay tuned! Let me know your thoughts in the comments. ๐Ÿ‘‡ #LLM #AI #MachineLearning
7
114
1
488
32,025
๐Ÿ’ก Python Constructs That Use the else Block 1. if-else Statement 2. for-else Loop 3. while-else Loop 4. try-except-else Some examples:
2
29
239
13,610
Linear Regression is one of the most important tools in a Data Scientist's toolbox. Yet it's super confusing for beginners. Let's fix that: ๐Ÿงต
16
134
3
783
53,623
Hugo Alatrista-Salas retweeted
AI Agents Stack
15
153
4
859
85,880
Hugo Alatrista-Salas retweeted
Top 20 AI Agent Concepts You Should Know
25
173
10
920
104,440