Skip to content

Commit 5018339

Browse files
committed
Minor fixes
1 parent ae89191 commit 5018339

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

RAGControl.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,28 @@
88
using System.Text;
99
using System.Threading.Tasks;
1010
using System.Windows.Forms;
11-
using Microsoft.Office.Interop.Word;
1211
using OpenAI.Chat;
1312
using UglyToad.PdfPig;
1413
using UglyToad.PdfPig.Content;
1514
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
16-
using UglyToad.PdfPig.Exceptions;
17-
using static System.Windows.Forms.VisualStyles.VisualStyleElement.ProgressBar;
1815
using Task = System.Threading.Tasks.Task;
1916
using Word = Microsoft.Office.Interop.Word;
2017

2118
namespace TextForge
2219
{
2320
public partial class RAGControl : UserControl
2421
{
22+
// Public
2523
public HyperVectorDB.HyperVectorDB DB { get { return _db; } }
2624
public bool IsIndexing { get { return _isIndexing; } }
25+
public static readonly int CHUNK_LEN = TokensToCharCount(256);
2726

28-
private BindingList<string> _fileList;
27+
// Private
2928
private Queue<string> _removalQueue = new Queue<string>();
29+
private ConcurrentDictionary<int, int> _indexFileCount = new ConcurrentDictionary<int, int>();
30+
private BindingList<string> _fileList;
3031
private HyperVectorDB.HyperVectorDB _db;
3132
private bool _isIndexing;
32-
private ConcurrentDictionary<int, int> _indexFileCount = new ConcurrentDictionary<int, int>();
33-
34-
public static readonly int CHUNK_LEN = TokensToCharCount(256);
3533
private readonly object progressBarLock = new object();
3634

3735
private static readonly Dictionary<string, int> modelsContextLength = new Dictionary<string, int>()

0 commit comments

Comments
 (0)