# [[Vector]] ![[Vector.svg]] In general, a vector is an ordered set of values that describe a particular state or object within context. However, a vector can mean slightly different things depending on the use case. In [[Mathematics]], a vector is an ordered list of numbers that have both a magnitude and a direction. For example, a 2D vector like `[2,4]` on the [[Cartesian Axis]] can refer to a single point that is 2 units to the right and 4 units up. In [[Linear Algebra]], a vector can represent points, directions, or rows/columns in a matrix. For [[Observability]] [[Database|databases]] like [[Prometheus]] and [[Grafana Loki|Loki]], a vector is a set of [[Time Series]] or values that each have timestamps and [[Labels]]. A vector is a collection of time series, while a time series is a collection of unique data points over time with labels. In [[Artificial Intelligence|artificial intelligence]], [[Large Language Model|LLM]]s store vectors in [[Vector Database|vector databases]]. In this context, a vector is a list of numbers with multiple dimensions to represent a feature-rich object (like text, image, or audio). The multiple dimensions capture different aspects or contextual information of something that would otherwise be difficult to encapsulate. ## Related - [[Vectors in Loki]] go into more detail about what vectors are like for Grafana Loki %% # Excalidraw Data ## Text Elements ## Drawing ```json { "type": "excalidraw", "version": 2, "source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.1.4", "elements": [ { "id": "4y8R7iOA", "type": "text", "x": 118.49495565891266, "y": -333.44393157958984, "width": 3.8599853515625, "height": 24, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 967149026, "version": 2, "versionNonce": 939059582, "isDeleted": true, "boundElements": null, "updated": 1713723615080, "link": null, "locked": false, "text": "", "rawText": "", "fontSize": 20, "fontFamily": 4, "textAlign": "left", "verticalAlign": "top", "containerId": null, "originalText": "", "lineHeight": 1.2 } ], "appState": { "theme": "dark", "viewBackgroundColor": "#ffffff", "currentItemStrokeColor": "#1e1e1e", "currentItemBackgroundColor": "transparent", "currentItemFillStyle": "solid", "currentItemStrokeWidth": 2, "currentItemStrokeStyle": "solid", "currentItemRoughness": 1, "currentItemOpacity": 100, "currentItemFontFamily": 4, "currentItemFontSize": 20, "currentItemTextAlign": "left", "currentItemStartArrowhead": null, "currentItemEndArrowhead": "arrow", "scrollX": 583.2388916015625, "scrollY": 573.6323852539062, "zoom": { "value": 1 }, "currentItemRoundness": "round", "gridSize": null, "gridColor": { "Bold": "#C9C9C9FF", "Regular": "#EDEDEDFF" }, "currentStrokeOptions": null, "previousGridSize": null, "frameRendering": { "enabled": true, "clip": true, "name": true, "outline": true } }, "files": {} } ``` %%