You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/howtos/solutions/vector/video-qa/index-video-qa.mdx
-62Lines changed: 0 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -73,46 +73,15 @@ application by replacing multiple traditional technologies with one solution.
73
73
Example Questions and Answers:
74
74
75
75
Q1: What is Redis Stack and what role does it play in the application?
76
-
A1: Redis Stack is an extension to Redis that adds additional modules, turning it
77
-
into a multi-model database. In the application, it is used for storing various
78
-
types of data and managing real-time communication between microservices.
79
-
80
76
Q2: How is the stock watch list stored and managed within the application?
81
-
A2: The watch list is stored as a Redis set which helps automatically prevent
82
-
duplicate stock symbols. In addition, further information about each stock is
83
-
stored in JSON documents within Redis Stack.
84
-
85
77
Q3: What type of data does the application store using time series capabilities of
86
78
Redis Stack?
87
-
A3: The application uses time series data to store and retrieve the price movements
88
-
of the stocks, making it easy to query over a date range and to visualize chart
89
-
data with time on the x-axis.
90
-
91
79
Q4: Can you explain the use of the Top-K filter in the application?
92
-
A4: The Top-K filter is a feature of Redis Bloom that is used to maintain a
93
-
leaderboard of the most frequently traded stocks on the watch list, updating every
94
-
minute with the number of trades that happen.
95
-
96
80
Q5: What methods are used to update the front end with real-time information in
97
81
the application?
98
-
A5: WebSockets are used to receive real-time updates for trending stocks, trades,
99
-
and stock bars from the API service, which, in turn, receives the information from
100
-
Redis Pub/Sub messages generated by the streaming service.
101
-
102
82
Q6: How does the application sync the watch list with the streaming service?
103
-
A6: The application listens to the watch list key space in Redis for updates. When
104
-
a stock is added or removed from the watch list on the front end, the API
105
-
communicates this to Redis, and the streaming service then subscribes or
106
-
unsubscribes to updates from the Alpaca API for that stock.
107
-
108
83
Q7: What frontend technologies are mentioned for building the UI of the application?
109
-
A7: The UI service for the front end is built using Tailwind CSS, Chart.js, and
110
-
Next.js, which is a typical tech stack for creating a modern web application.
111
-
112
84
Q8: How does Redis Insight help in managing the application data?
113
-
A8: Redis Insight provides a visual interface to see and manage the data structures
114
-
used in Redis Stack, including JSON documents, sets, and time series data related
115
-
to the stock information in the application.
116
85
```
117
86
118
87
3.**Data storage with Redis**: All generated data, including video summaries, potential questions, and vector embeddings, are stored in Redis. The app utilizes Redis's diverse data types for efficient data handling, caching, and quick retrieval.
@@ -462,46 +431,15 @@ application by replacing multiple traditional technologies with one solution.
462
431
Example Questions and Answers:
463
432
464
433
Q1: What is Redis Stack and what role does it play in the application?
465
-
A1: Redis Stack is an extension to Redis that adds additional modules, turning it
466
-
into a multi-model database. In the application, it is used for storing various
467
-
types of data and managing real-time communication between microservices.
468
-
469
434
Q2: How is the stock watch list stored and managed within the application?
470
-
A2: The watch list is stored as a Redis set which helps automatically prevent
471
-
duplicate stock symbols. In addition, further information about each stock is
472
-
stored in JSON documents within Redis Stack.
473
-
474
435
Q3: What type of data does the application store using time series capabilities of
475
436
Redis Stack?
476
-
A3: The application uses time series data to store and retrieve the price movements
477
-
of the stocks, making it easy to query over a date range and to visualize chart
478
-
data with time on the x-axis.
479
-
480
437
Q4: Can you explain the use of the Top-K filter in the application?
481
-
A4: The Top-K filter is a feature of Redis Bloom that is used to maintain a
482
-
leaderboard of the most frequently traded stocks on the watch list, updating every
483
-
minute with the number of trades that happen.
484
-
485
438
Q5: What methods are used to update the front end with real-time information in
486
439
the application?
487
-
A5: WebSockets are used to receive real-time updates for trending stocks, trades,
488
-
and stock bars from the API service, which, in turn, receives the information from
489
-
Redis Pub/Sub messages generated by the streaming service.
490
-
491
440
Q6: How does the application sync the watch list with the streaming service?
492
-
A6: The application listens to the watch list key space in Redis for updates. When
493
-
a stock is added or removed from the watch list on the front end, the API
494
-
communicates this to Redis, and the streaming service then subscribes or
495
-
unsubscribes to updates from the Alpaca API for that stock.
496
-
497
441
Q7: What frontend technologies are mentioned for building the UI of the application?
498
-
A7: The UI service for the front end is built using Tailwind CSS, Chart.js, and
499
-
Next.js, which is a typical tech stack for creating a modern web application.
500
-
501
442
Q8: How does Redis Insight help in managing the application data?
502
-
A8: Redis Insight provides a visual interface to see and manage the data structures
503
-
used in Redis Stack, including JSON documents, sets, and time series data related
504
-
to the stock information in the application.
505
443
```
506
444
507
445
The `vector embedding chain` is used to generate vector embeddings for the video summaries. This is done by asking the LLM to generate text embeddings for the summary. The `vector embedding chain` is defined as follows:
0 commit comments