Commit c1df8b2
committed
add basic RAG with static data
in this change i hard code the commit messaged related to the query
and use that to initalise a vector store using sqlite as the backed.
this vector store is then used the buid a retriver to agment the context
query context. finally the prompt and query logic are extracted
into funcitons, built into a graph and executed
with this we now get output that more reasonable
"""
The commit in question is I63208c7bd5f9f4c3d5e4a40bd0f6253d0f042a37 from the OpenStack Nova repository (<https://opendev.org/openstack/nova>).
**Commit Message:**
The commit message is repeated multiple times in the provided context, suggesting that this change involves resolving an issue where each foreign key points to a table that may not be the source table. The solution is to check if the target table is indeed the source and skip if it's not. This resolution allows for enabling errors on SAWarning warnings without any filters.
**Author:** Stephen Finucane <sfinucan@redhat.com>
**Change-Id:** I63208c7bd5f9f4c3d5e4a40bd0f6253d0f042a37
**Conflicts:** The conflicts are noted in nova/objects/cell_mapping.py and nova/tests/fixtures/nova.py. According to the NOTE(melwitt), these conflicts arise because:
1. Change Ia5304c552ce552ae3c5223a2bfb3a9cd543ec57c (db: Post reshuffle cleanup) is not in Wallaby.
2. The WarningsFixture is in nova/tests/fixtures.py in Wallaby, and change I07be8e16381592fc177eeecd4f0d7f2db93eb09d (tests: Enable SADeprecationWarning warnings) is also not in Wallaby.
**Cherry-picked from:** This commit was cherry-picked from three other commits: 8142b9d, ce2cc54, and 5b1d487.
**Resolution & Impact:** The commit aims to resolve an issue related to foreign key relationships in the database schema. By ensuring that each foreign key points to its correct source table, this change should improve data integrity and consistency within Nova's database. Additionally, enabling errors on SAWarning warnings without filters could help in early detection of potential issues or misconfigurations during runtime.
**Additional Information:** The repeated commit message and the NOTE(melwitt) suggest that this commit might be part of a larger effort to address database schema-related issues or improve testing robustness within Nova. To get more specific details, you may want to review the actual code changes or related bug reports/discussions in the OpenStack Nova project.
"""
not perfect but it actully is relevent to the change.1 parent c9a36d9 commit c1df8b2
6 files changed
Lines changed: 152 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 14 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
| |||
31 | 49 | | |
32 | 50 | | |
33 | 51 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 52 | + | |
39 | 53 | | |
40 | | - | |
41 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
42 | 170 | | |
43 | 171 | | |
44 | 172 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
0 commit comments