Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suncloudsmoon committed Sep 9, 2024
1 parent ae89191 commit 5018339
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions RAGControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,28 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Office.Interop.Word;
using OpenAI.Chat;
using UglyToad.PdfPig;
using UglyToad.PdfPig.Content;
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
using UglyToad.PdfPig.Exceptions;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.ProgressBar;
using Task = System.Threading.Tasks.Task;
using Word = Microsoft.Office.Interop.Word;

namespace TextForge
{
public partial class RAGControl : UserControl
{
// Public
public HyperVectorDB.HyperVectorDB DB { get { return _db; } }
public bool IsIndexing { get { return _isIndexing; } }
public static readonly int CHUNK_LEN = TokensToCharCount(256);

private BindingList<string> _fileList;
// Private
private Queue<string> _removalQueue = new Queue<string>();
private ConcurrentDictionary<int, int> _indexFileCount = new ConcurrentDictionary<int, int>();
private BindingList<string> _fileList;
private HyperVectorDB.HyperVectorDB _db;
private bool _isIndexing;
private ConcurrentDictionary<int, int> _indexFileCount = new ConcurrentDictionary<int, int>();

public static readonly int CHUNK_LEN = TokensToCharCount(256);
private readonly object progressBarLock = new object();

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

0 comments on commit 5018339

Please sign in to comment.