Skip to content

Commit cb9e4d1

Browse files
Make memory actually work by implementing add_session_to_memory.
This creates a new memories collection to hold indexed events.
1 parent 9a27b7e commit cb9e4d1

3 files changed

Lines changed: 230 additions & 247 deletions

File tree

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from __future__ import annotations
16+
17+
DEFAULT_STOP_WORDS = {
18+
"a",
19+
"about",
20+
"above",
21+
"after",
22+
"again",
23+
"against",
24+
"all",
25+
"am",
26+
"an",
27+
"and",
28+
"any",
29+
"are",
30+
"as",
31+
"at",
32+
"be",
33+
"because",
34+
"been",
35+
"before",
36+
"being",
37+
"below",
38+
"between",
39+
"both",
40+
"but",
41+
"by",
42+
"can",
43+
"could",
44+
"did",
45+
"do",
46+
"does",
47+
"doing",
48+
"don",
49+
"down",
50+
"during",
51+
"each",
52+
"else",
53+
"few",
54+
"for",
55+
"from",
56+
"further",
57+
"had",
58+
"has",
59+
"have",
60+
"having",
61+
"he",
62+
"her",
63+
"here",
64+
"hers",
65+
"herself",
66+
"him",
67+
"himself",
68+
"his",
69+
"how",
70+
"i",
71+
"if",
72+
"in",
73+
"into",
74+
"is",
75+
"it",
76+
"its",
77+
"itself",
78+
"just",
79+
"may",
80+
"me",
81+
"might",
82+
"more",
83+
"most",
84+
"must",
85+
"my",
86+
"myself",
87+
"no",
88+
"nor",
89+
"not",
90+
"now",
91+
"of",
92+
"off",
93+
"on",
94+
"once",
95+
"only",
96+
"or",
97+
"other",
98+
"our",
99+
"ours",
100+
"ourselves",
101+
"out",
102+
"over",
103+
"own",
104+
"s",
105+
"same",
106+
"shall",
107+
"she",
108+
"should",
109+
"so",
110+
"some",
111+
"such",
112+
"t",
113+
"than",
114+
"that",
115+
"the",
116+
"their",
117+
"theirs",
118+
"them",
119+
"themselves",
120+
"then",
121+
"there",
122+
"these",
123+
"they",
124+
"this",
125+
"those",
126+
"through",
127+
"to",
128+
"too",
129+
"under",
130+
"until",
131+
"up",
132+
"very",
133+
"was",
134+
"we",
135+
"were",
136+
"what",
137+
"when",
138+
"where",
139+
"which",
140+
"who",
141+
"whom",
142+
"why",
143+
"will",
144+
"with",
145+
"would",
146+
"you",
147+
"your",
148+
"yours",
149+
"yourself",
150+
"yourselves",
151+
}

0 commit comments

Comments
 (0)